Under rating threshold (hideshow)
Hi and thanks about the tutorial.I've got an issue that you can't see the score and the highscore.Can someone help me?
Under rating threshold (hideshow)
First off, to Areibman: I noticed the same difference in my Stencil, but as I downloaded mine yesterday i think this might be an update where they have tried to simplify the program a little and also have renamed some buttons. Rest assured that I have completed both tutorial 1 and 2 without problems, so the program works and the tutorial is still valid, you just have to figure out some of the new names for things.
For Abigayl: I tried to make it so that my character died when leaving the screen, resulting in the same "Fade-out-reset-fade-out"process. This I did by giving him a trait that killed him when leaving the screen, and one that made the game fade when he died. However - this only works when he leaves the top of the screen, all other edges simply makes him disappear without coming back. Any tips? In advance, thanks for taking the time to help out with a problem that must seem ridiculously simply to you.
That's a common question, one that is answered in this tutorial set, part 5, and to a degree, set 2, part 2 (that one only covers the bottom, but you can adjust to to be in all directions). The basic idea is to check in "always" to see "if [x of self] < 0 OR [x of self - width of self] > [screen width] OR [y of self] < 0 OR [y of self - height of self] > [screen height]" (then do your coding, either killing self or pushing self back on to the screen). To make it work, in "when created" set self "make self always active" to make it still take in coding when beyond the screen. Hope that helps. :)
A setter will store the information in the attribute, and a getter uses that information from the attribute. For example, if you "set X to 10", you are telling the computer that when it sees the "X" to think of "10" instead, so when you "get X", the computer spits out "10" instead. Does that make more sense?
Under rating threshold (hideshow)
Awesome tutorial by the way! I don't know if I will get much into this, but it is fun nonetheless! And these new programs for programming make it much easier :D
Under rating threshold (hideshow)
If you have a problem with not seeing your score you probably have to change the x and y coordinates. That's what I had to do. I just messed around with the coords for about 1 minute to find what worked for me. It may depend on the "scene properties" and the width and height you entered?
Yep, the coordinates in the upper left are (0,0) and the bottom right is (width, height), so if you are trying to put an actor in the corner, you will need to adjust accordingly. To get the precise corner, regardless of size, in the scene palette, you can find a code that gets the scene height/width.
Under rating threshold (hideshow)
My Hero doesn't die when it touches the enemies. Here's the coding:
http://i1112.photobucket.com/albums/k489/breakawall/stencylcode.png
It would help if I could see the game itself. Did you remember to tell the enemies to kill themselves when off screen? If not, that could be the issue.
You don't need categories. Just ignore that part. This was made with Stencyl 1.1, which is very rarely used now (although the concepts are the same). I do have the start to the 2.0 tutorial set done, which you can find here: http://www.kongregate.com/games/Abigayl/stencyl-2-0-tutorial-1-basics
If you are going for online multiplayer, Stencyl is not really the tool to use. You'll want to get familiar with using AS3 coding and likely have to get the Adobe official programming program (forget the name of it offhand). Online multiplayer game creation is ONLY recommended for advanced programmers (it's beyond my skill level).
If you are looking for true multiplayer games, Stencyl is likely not the tool for you. It is designed for simpler games, and online multilplayer is much more complex. If you just mean local multiplayer, the basic idea is to split up the WASD controls to be one player and arrows to be the other (like Fire Boy & Ice Girl games).
Under rating threshold (hideshow)
Hi! I just want to ask a question. When submitting statistics to kongregate, are their values different for every user or are they shared?
Did you make sure to use a "do every" loop instead of "do after"? Also, are you sure the behavior is attached? If you want to, upload the game to Forge and send me a PM with the name, and I'll try to see what's going on with it.
Under rating threshold (hideshow)
Again a great tutorial, just like your first, but you told me that 8-way movement was in this tutorial, but it wasn't! I feel a little lied to...
That's in tutorial 5... I was trying to figure out the best, simplest way to do edge detection and nothing ended up working, so I had to show my less-elegant ways of keeping the playing in-bounds.
Under rating threshold (hideshow)
It won't let me add the "_ as text" piece into the "_+_" piece, and it says there is an error when I type "Current Score" into that box, too.
Ah, someone using the Stencyl 1.1 version... this tutorial originally had the comparison operators from the "Numbers & Text" palette, but so many were using a later version that I had to photoshop my guide to show the updates. Glad you found them though.
Under rating threshold (hideshow)
when i play and the player hits the enemy the player dosen't die i put the collision coding in correct i don't get whats happening!please tell me what i might have done wrong im so confused rite now.
Two things: check your collision groups to make sure the player is hitting the enemy (can tell if you just pass right through enemies vs. bounce off). Also, check that you have attached the behaviors to the actors. If neither of those work, feel free to send me a pic of the coding and I'll see if I can find the issue.
Under rating threshold (hideshow)
hey when i did the first tutorial and i tested it and when the character goes outta screen it dosent die! and the enemies dont spawn help
That's because I hadn't included the out-of-bounds coding yet. I had been searching for the best way to do it, but ultimately had to just use the messier methods I know in Tutorial 5 (so check there for how to do it).
Under rating threshold (hideshow)
Ok, i managed to solve my problem by making my button a lot smaller. it works perfect now but it would still be cool if you could explain why the big button didn't work. Great tutorial btw, 5/5
Thanks for the 5. The main thing I can think of is that perhaps when you made the button smaller, you attached the click behavior to the actor, which you might not have done when it was large. Other than that, if you button was so big that parts of it went off the screen, that can cause issues too.
Under rating threshold (hideshow)
I can't get my start button to work. I created it like the other actors and placed it inside the scene, but when I press play it isn't there. what am I doing wrong?
If you could send me a screenshot of your behavior(s), that would help me figure out what the issue is (there is a camera button in the lower right to quickly screenshot the entire coding).
Under rating threshold (hideshow)
Ok after almost 1 hour of trying i got it. I used do after 0.1 sec instead of do every 0.1 secs.
Sorry and keep up the good work ;)
Aye, it's the simple things that often are the hardest to debug. Another common one is mistaking "group for this actor's colliding shape" with "group for colliding shape" or using the numerical addition instead of the text version (or vice-versa). Glad you got it solved :D
Under rating threshold (hideshow)
Hey m8. First of all thank you for this amazing tutorial.
I'm trying to follow your programs but my score isn't working as it should. If i start my score at 0 it goes to 1 and then stops there but my highscore is working good because if i change start score for 2 the highscore will go to 3 as the score stops at 3.
What exactly am i doing wrong?
Thank you
Under rating threshold (hideshow)
when I create a high score game attribute it is always set to 0 so at the colision palce, at the if place it is always false.
Under rating threshold (hideshow)
Once again this is an amazing tutorial. I'm not entirely sure how to do the Kong Api bit yet, I'm sure I'll figure it out. The tutorial was once again clear, and helped a lot. I'm looking forward to the next three. 5*'s for clarity and interactivity.
Thanks for the 5. For the Kongregate API, to get it to show up in the leaderboards, when uploading and adding the statistics, you also need to check the "add to leaderboards" and put a name in for the leaderboards. I hope to update the tutorial sometime to include this.
Under rating threshold (hideshow)
I see..so Attributes are "variables" like in Normal Coding (GM8, C++...) Though it's a heck of a lot easier to understand here. I might be able to figure out certain other things now that i've finished this tutorial.
Thanks Abi..so far these are the best tutorials i've ever used for anything. :D
Yes, attributes are like the variables in other coding languages. Thanks for your kind words... I basically made these tutorials based on what I would have liked to have seen when developing my first game... in fact the game you end up making IS basically my first game (Last Square Standing).
Under rating threshold (hideshow)
When Making The Score Drawing Thingy You Have To Drag The Score Attribute In To The CreateEnemies Behavior, But We Created The Attribute In The Controls Behavior. Do We Have To Create The Attribute In CreateEnemies Too? Because Then Theres No Data What The Value Of The Score Attribute Contains.
Please Answer
Greetz!
Game attributes (purple) are stored globally, so any behavior can open it. The issue is that when you currently have a behavior open, it won't show until you close the behavior and re-open it. Sorry, should have mentioned that detail.
Under rating threshold (hideshow)
Great tutorial as always. :) I was wondering, it keeps saying Stencyl is installed into an unwriteable directory. I have tried moving it to the folders it says but it still does this. But it doesn't seem to affect my game in any way. Do you know how to get rid of this/ how it will affect my game? 5/5
I remember others who have seen that issue. It doesn't seem to be too bad if you are running as the administrator, but you still may want to post it to the Stencyl forums to see if someone else knows more. Here's the related topic I found: http://community.stencyl.com/index.php/topic,5389.msg34778.html#msg34778
Under rating threshold (hideshow)
After completing this tutorial, when I tested my game out the main menu worked fine, but when I got to gameplay my character wouldn't move at all.
The best way for me to help is to see a screenshot. Somehow the coding probably got messed up. You can use imageshack.us or any other image site and send me the link, and I will try to figure out what is wrong.