52,618

Views

Beginner

Level

41

Comments

Abigayl's Interactive Tutorials (Part 3)

by Joe (Updated on 2012-07-21)


Tutorial 3 - Advanced Controls, Spawning

 

CHANGES TO CURRENT STENCYL VERSION:

  • Game Center is now Dashboard
  • Controls are now found in the Settings button at the top
  • Now need to use "Add an Event" at the top left to make the headings
  • The behavior receiver is now an event (Add Event -> Advanced -> Custom Event)

 

Liked this one? See them all!

Part 1: The Basics

Part 2: Attributes, Saving/Loading, Kongregate API

Part 3: Advanced Controls, Spawning

Part 4: Mouse-based Shooting, Collisions and HP

Part 5: Music, Screen Boundaries, Backgrounds, Power-ups and More

Part 6: Virtually Lagless Actors

Disclaimer: Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!

41 Comments

moraboy
Really good tutorials but I experience one bug in my game. When my player leaves the screen, the game doesn't restart, it just keeps on going. What have I done wrong?
0 14 years, 5 months ago
Abigayl
I'm glad you found it Cami... reminds me of trying to use ctrl W closing the program instead of going up faster as I had intended :P
0 14 years, 5 months ago
camicami
Ok, I started the tutorials from the beginning, checking each step, and I found out the problem:

For speeding up the movement, I was trying to use the key next to the left shift key, which on my keyboard is `. This caused the game to break, apparently. I changed it to action2 and now it works perfectly. :)

0 14 years, 5 months ago
Abigayl
Cami, can you give me more details and perhaps a screenshot? You can also join the livestream for some one-on-one help (livestream.com/poweredbyflowers)
0 14 years, 5 months ago
Abigayl
Glad to help :)
0 14 years, 5 months ago
VirusChris
There you go! Thank you very much! That got it to work just like in your tutorials!

I'm really grateful for your help! It's fun making a game and your tutorial helps a lot! I'm glad you made these!

Alright, I'll wait until to Tutorial 5 to create those Border Collision for the Player.

0 14 years, 5 months ago
Abigayl
Chris, the bouncing issue can be solved by going to your Game Center, then to Collision Groups, click on the "actors" group (or whatever you labeled your enemies as) and make sure that the actors->actors (the button that says "actors") is BLUE not green. I will see about updating tutorial 1 to cover that idea.

As for the edges, that's again an issue that began in tutorial 1 and is not solved until tutorial 5. Please see that one (tutorial 5) for the solution... it's a bit messy, which is why I waited to address it.

0 14 years, 5 months ago
VirusChris
This is pretty cool! However I noticed something very different from your version and my version. When I test the game I notice that when my enemies collide with one another they bounce off of each other as oppose to your enemies that just pass through one another.

And another feature I notice is that when I play your version here and I collide with the border the game resets as it appears I died while in my version my player can go off the screen and the game continues but I can't bring my player back to the screen and I can't retry either.

I don't know if this works differently for a tested game and a game posted online as a true Flash game. Can you clarify this with me please? I want to make sure I didn't do anything wrong to get this strange behavior.

0 14 years, 5 months ago
Abigayl
Capa: Hold Shift while dragging to move only the one code
0 14 years, 5 months ago
Capadac
when i drag the original velocity at takes everything underneath with it

0 14 years, 5 months ago

Sign In to Comment