267,099

Views

Beginner

Level

152

Comments

Abigayl's Interactive Tutorials (Part 1)

by Joe (Updated on 2012-07-21)


Tutorial 1 - The Basics

 

CHANGES TO CURRENT STENCYL VERSION:

  • Game Center is now Dashboard
  • No longer need to make Actor Behaviors; can use "Events" tab instead
  • Now need to use "Add an Event" at the top left to make the headings
  • If using events, do not need to "Attach to Actor" (still needed with Behaviors though)
  • Collisions Groups are now in the Settings button at the top of the page
  • Collisions between Actors are now handled by collision events (use "Member of Group" and change the group to "Actors")

 

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!

152 Comments

r7chandra
Hi, Great Tutoriol :) But i have one question how do i kill self(the player) when i leave screen.....i Trieed adding the "kill [self] after leaving screen" but the score kept counting.....any advice?? i also added the fade out and then in block but it doesnt work.... PLEASE HELP! :D :D

0 14 years, 4 months ago
Abigayl
Thanks Eric, next 4 all are up :)
0 14 years, 4 months ago
ericblak1947
A fantastic tutorial! Keep them coming. Easy to follow, I learned a lot!
0 14 years, 4 months ago
Abigayl
Thanks halash
0 14 years, 4 months ago
halash1
is one if the best tutorial out there explains everiting so simple and easy
0 14 years, 4 months ago
Abigayl
Glad it was a quick fix :)
0 14 years, 4 months ago
VirusChris
Oh! I found the problem!

I added the "group for this actor's collision shape" in the first equality part instead of the "group for colliding shape" like you listed.

Now it works! ^_^
Thanks for replying! I don't think I would've found it so fast!

0 14 years, 4 months ago
Abigayl
Andi, did you remember to attach the scene behavior (the one that creates the enemies) to the scene? If that is not the issue, please come to the livestream so I can help more in-depth.

Chris: The likely issue is some error with your collision coding. Are you sure that you have the equality part correct and that you tell it to kill self (and you have the behavior attached to the actor)? If all of those check out, please join the livestream so I can try to help more in-depth.

livestream.com/poweredbyflowers

1 14 years, 4 months ago
VirusChris
Cool! I tried out your tutorial and I had a blast practicing with Stencyl a bit! ^_^

However I did bump into a problem. Instead of my player dying when he gets hit, the enemy just causes him to rotate around (I added eyes on him) so he spins around as do the enemy he collides with.

I DID just update to the most recent version of Stencyl, while you tutorial was using an old version as I notice one or two features (the description and category bit for the Level Scene creation) was not present in my up-to-date version compare to your own. I followed your instruction perfectly, but I got something different than what you got.

But I got to make something and I'm happy! Thanks for the tutorial!

0 14 years, 4 months ago
Andimaaan
I´ve made everything like you showed it, but the enemys don´t spawn in the scene. Everything else works fine so whats the problem?
0 14 years, 4 months ago

Sign In to Comment