Under rating threshold (hideshow)
One of the most common problems I see on the Stencyl forums is misuse of the time blocks, particularly when using them in the "always" wrapper or when referring to an actor after it has been killed (both game-breaking issues). I think that could use a good tutorial.
Under rating threshold (hideshow)
LIke always a great job. I liked this tutorial more than the others though, since it went deeper into programming concepts. I think that you should move away from the avoider game, but perhaps try a patformer, since up until now, none of your games have had any physics. Something I'd like is how to have moused based shooting. Also, perhaps you should make a separate tutorial just for how stencyl is like programming - how the or is like the ||, and is like the &&, show some code-mode of stencyl and explain it. If I get any more ideas, I will share them with you. I liked the improvements you made from the other version as well. But who's the drawing on the bottom left of? It kind of reminds me of RPG Shooter Starwish.
Wow... let me take these one at a time... Platformer is tutorial 6; Mouse-Based shooting is tutorial 4 (next tutorial); Stencyl as programming/sitelock/music/other random tidbits is tutorial 5; thus, you have actually hit on all of the next tutorials :P. The drawing is a unique character that Ilolamai is making just for me :)
Under rating threshold (hideshow)
LOL I was supposed to say "change the smiley into something else" last tutorial. I guess it happened already. xD Could your next tutorial be about adding an HP bar and actions? Thanks. :D
Under rating threshold (hideshow)
This has been a really fantastic series. I've been wanting to dig into Stencyl, and this has been a really great introduction. I'll definitely be keeping my eye out for more from you.
Under rating threshold (hideshow)
Please rate this comment up so that I can see if you want to see even more tutorials, going more in depth or into other concepts. (Also, please let me know what other concepts you would like to see covered.) Thanks!
Under rating threshold (hideshow)
Just wanted to thank you for your tutorials. And a quick note: I'm using StencylWorks 1.4.1 and apparently there is no messaging anymore. I don't know if that has been mentioned already.
For all those people wondering:
Instead of the "Messaging" Button there is now the "Behavior" button. Click it.
For actors (like the player) you have to use the stuff located under "Trigger", for scenes (e.g. when spawning enemies) you have to use the stuff under "Attributes". Other than that it's pretty much the same for actors and scenes:
1. Put "Enable behavior for this actor/scene" at the top of "when created" and name it.
2. Instead of "when this hears " use "when happens".
3. Instead of ""tell this to " use "trigger event ".
Great comment. I rated it up so hopefully others see it too. I would go back through and change the pictures to match the current changes, but when SW2 comes out (which is soon), the entire system is revamped, so I will need an entire new series for it.
Under rating threshold (hideshow)
Hey i wanted to ask this to anyone that playes this tutorial am i the only one that stencyl wont let me place the otherwise or otherwize if blocks under if in the middle of the tutorial?
Those can be finicky, especially if you don’t know the trick. To place in an “otherwise if” below an “if” when there’s other code below it, you have two options: 1. Move the old code below out of the way, drag in the “otherwise if”, then replace the old code (always works but tedious) or 2. When you drag in the “otherwise if”, pretend you are placing it over the “if”, so that the top of the “otherwise if” just barely covers the “if” writing in the original “if” statement; there’s only a few pixels of error to make it work, but it will snap into place correctly if done right (do not ask me why this works and the “normal” idea of placing it under doesn’t… it doesn’t make sense to me either).
Under rating threshold (hideshow)
I hope to be updating this tutorial soon with changing the old messaging coding with the new "behavior" coding. I appreciate your patience in the waiting.
UPDATE: The game now has "photoshopped" in of the current version which shows the "behavior" category instead of messaging so hopefully there will be less confusion. I only did it for the actual scenes that use it though since it's a bit of a hassle to redo each scene individually for a non-artist like me :P.
Under rating threshold (hideshow)
Hey Abi! You are doing an amazing job with this tutorials! I thank you a lot!
Since the tutorial are made with a old version of Stencyl, I can't find the receiver code in Stencyl 2.0. There are other way to make a method now? Again, thanks for your help and sorry about my english, I'm a brazillian and I am just start playing around with Stencyl!!
On the left, use "Add Event", then go down to "Advanced" to "Custom Event". As soon as I finish my Mr. Goldfish Reboot, I plan on making a second tutorial set just for 2.0 :)
Under rating threshold (hideshow)
The only fault I find with these tutorials (so far) is that there is no reminder to comment your code. I always thought that was essential when I was learning programming.
If you are making a large game, then comments indeed can help out. Personally, I always found commenting annoying (I minored in computer programming in college) since I used names that allowed me to simply remember what each behavior did. It IS essential though for collaboration projects (so that your partner quickly knows what each part does).
Under rating threshold (hideshow)
I just noticed, you do not have to create WASD as a separate control and do the extra coding. You can just select UP, and add the letter W. This should be mentioned in the updates section. But its still good to know the logic when we do it your way.
Under rating threshold (hideshow)
Sorry for the triple post, but when I test the game it spawns only one enemy.
I put something like this: [when Created:] Trigger event create
[every 6 seconds:] trigger event create. And for the spawn enemy thing I did the exact same thing but except it says [when "create" happens:]
(whole enemy spawn thing)
Hmm... that's strange. Can I see screenshots of the coding? (BTW, PM is a faster way to reach me than comments; I don't check all tutorials every day).
That is in the Behavior palette. All you do is type in the name of the event you wish to trigger for the actor (use the same name as the receiver from Add Event -> Advanced -> Custom Event).
Are you sure you used the same name for the score code as the name for Kongregate? Also, if you want to actually "see" the score, be sure to check the "display in leaderboards" when submitting the score to Kongregate.
Under rating threshold (hideshow)
I am having a few issues after finishing with the tutorial...The first is that my character is constantly moving right without any button presses, and enemies are only spawning in the original corner. It appears that I made no changes. Thanks in advance!
Under rating threshold (hideshow)
A difference between the first second version of the game in the tutorial is that, if the player leaves the screen, the game restarts on the second, instead of simply vanishing like on the first. I don't think you mentioned it during the tutorial or I failed to notice that part. What should I do in order to make that part? thanks
Under rating threshold (hideshow)
Once, I made Pong using Flash. Then I was kind of demotivated to try other stuff because the collision was really hard to get right using it. But now that I've discovered stencyl and with the help of these tutorials, I guess I'll have no more excuses to delay my game designing learning and development, even though I'm using the 2.0 version , which makes it harder to find the right block, sometimes. xD
Thanks a lot for your help and keep going :)
In the Game Center, go to Collision Groups, and make sure the collision for your enemy group (actors, if following the tutorial) to itself is BLUE not GREEN. That will make sure they don't hit each other :)
Under rating threshold (hideshow)
i literally shouted "YES!!!" when you went into 8-way movement. Again, this stuff should come in handy regarding me doing an RPG (or at least a top-down game). My only problem was the x/y coords. But that was because i had a different resolution setting for my game. A little tinkering and adjusting later i got what i wanted.
So far i think the greater challenge once im done with all this is making all the sprites in Pencyl..unless i stick with photoshop/fireworks and import from there. Though, that's something to worry about later...
Agreed, 8-way is so much better than 4-way. The X/Y coordinates indeed can take some finesse to get correct since actors are different sizes. If you have Photoshop, I'd advise sticking with that over Pencyl, but I will admit that I haven't fully explored Pencyl myself.
Under rating threshold (hideshow)
Thanks for the reply! I had to edit it again because if a person goes off the edge of the screen then their score still counts, so instead i added another "reset" thing into the scene, and this one doesn't change the highscore, so it still works even if you fall off but they can't cheat =D.
Under rating threshold (hideshow)
Please Note: Due to an update in Stencyl, the comparisons are now found in the Flow -> Conditional tab. Since my version is one that has been updated over time, it works differently with mine, so I cannot show this updated scene... :(
Under rating threshold (hideshow)
I am getting reports of a bug where the tutorial jumps back to the beginning. If this is happening to you, please send me a detailed message as to what/where/etc. it is happening. I have tried it both on Chrome and IE and I cannot recreate this error.
Under rating threshold (hideshow)
For those who are attempting to do this tutorial. Remember to have the "otherwise if" and "if" and "otherwise" brackets appropriately placed. Sorry for double post, my last comment was not clear.
Positioning indeed matters a ton. Lots of times, the wasted hours spent on debugging end up being a search for a simple thing out of place... just be glad this isn't direct coding, so it's not a semi-colon or similar near-impossible-to-find issue ;).
Under rating threshold (hideshow)
For those who are attempting to do this tutorial. Remember to have the "otherwise if" and "if" and "otherwise" brackets appropriate. It took me long time to figure out what I was doing wrong and how to fix it. But its the learning process. When you make mistakes you learn even more from it. Moving to the next tutorial!
Under rating threshold (hideshow)
I don't know where the receiver " when this hears text" is? In tutorial it shows its under behavior -> State palette. Due to the updates, it's not there. What should I do?
Under rating threshold (hideshow)
So far I am finding this tutorial a bit challenging compared to the last two. When you want me to move things around using "shift" or "alt," I need to pay very close attention to where I am moving it to. Hopefully it will get easier.
Holding "shift" allows you to move only one piece of code (if you DON'T hold it down, it will move all of the codes that follow it too). Holding alt makes a quick copy of the code; that alone can increase coding speed drastically. If you watch the stream carefully, you'll see I use both proliferantly.
I'm glad you liked it :). I also have more recent tutorials for the latest versions of Stencyl. One is a very detailed tutorial for the actual current version :).
Under rating threshold (hideshow)
I moved the 'set high score' from the 'Die' area to an 'always if' section so it will move up as the player beats it. Will this create more lag?
Under rating threshold (hideshow)
having problems with left and down registering. Looked at it lots of times coding seems correct but it doesnt register. The other directions work just fine.
Under rating threshold (hideshow)
Thanks for the tutorial. I liked it very much and it works almost completely. My problem is that my enemies collide among each other and that makes the game really hard to play... Did I miss something in the tutorials?
Petterr, go into your collision groups, click on "actor" on the right side (or whatever you are using for your enemies) and make sure the "actor" button for it is BLUE, not GREEN. What is likely going on is that you have your enemy group to hit itself instead of just lining up on top of one another. I can try to show via livestream if it doesn't make sense.