267,103

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

vinayakpandey
how to avoid the player leaving the screen? I have followed your tutorial but the problem is that the player is able to leave the screen. please solve this problem
0 14 years, 1 month ago
Abigayl
Blorph, it's now under "Add Event" (on the left side of the screen), under "Collisions". You may need to change things around slightly so it works for you, but the idea is the same.
0 14 years, 1 month ago
Blorph
I've got Stencyl 2.0, and I tried this tutorial but "this collides with something else" block, doesn't exists. so that when it made the game, the player, when it hits the enemy, the player just spins around on it's axis. Help?!?
0 14 years, 1 month ago
SeishoGamu
I so loved this tutorial! You're doing a wonderful thing, here; keep up the great work!
0 14 years, 1 month ago
Abigayl
Crimson: "when created" only happens on the first frame. "Always" happens with every frame. If you place a time loop in "when created", it will enter the loop only once and thus act properly. If you place it in "always" instead, you are ENTERING the loop every frame (generally 60 frames per second), causing the issues.

Hooi: That is generally caused by one of two things. Either you have a time loop or time delay in an actor without the check "if self is alive" inside of it, or you might have a corrupted version of Stencyl (has become a bit common with some of the 2.0 downloads).

0 14 years, 1 month ago
hooi
I'm using version 2.0, after having created the actor, behavior and scene (before proceeding to create the enemy), I tested but i keep getting error message:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

Anyone knows how to resolve the problem?

Thanks...

0 14 years, 1 month ago
CrimsonThunder
Thanks for this tutorial! As a complete beginner it helped me out quite a lot, although I'm using Stencyl 2.0 there were a few things that were different, there is no more categories (I got stumped on this one and quite frustrated, I thought it was a critical step), when creating enemies I chose "do after" instead of "do every" and kept wondering what went wrong haha and lastly with the collision in the tutorial you had it set to colliding with actors, not players which didn't end the game. This is what I had to do in Stencyl 2.0: http://i44.tinypic.com/2yk1h1w.png< br />
Why is it that "when created" and "always" are very different? I did try out always when creating an enemy and it lagged my computer so bad! Which is actually a pretty good lesson, will make sure I choose the right ones in the future. (but I just want to know the reasons why it lags, so I know properly)

Thanks again Abigayl.

0 14 years, 1 month ago
just4yoshi
Apollo: Did you remember to attach the scene behavior to the scene? If you didn't, it won't create the actors.
0 14 years, 1 month ago
Apollo77
Hey, very nice tutorial, but for some reason I can't put an actor on a scene. Any idea why?
0 14 years, 1 month ago
swophay
its ok i solved the problem! thanks for the tutorial!
0 14 years, 1 month ago

Sign In to Comment