55,207

Views

Beginner

Level

37

Comments

Abigayl's Interactive Tutorials (Part 4)

by Joe (Updated on 2012-07-21)


Tutorial 4 - Mouse-based Shooting, Collisions, and HP

 

CHANGES TO CURRENT STENCYL VERSION:

  • Game Center is now Dashboard
  • Collisions Groups are now in the Settings button at the top of the page
  • No longer need to make Actor Behaviors; 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 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!

37 Comments

Xietao
I can get 2231 score only using shooting
-1 14 years, 2 weeks ago
Abigayl
Vinay, change the health of the player into a GAME attribute, and then you can use a scene behavior to create the HP bar (which stays in one place).
0 14 years, 1 month ago
vinayakpandey
I want to create HP for the player too but hoe to make that rectangular static at one place as it seems to move with the player.Please help.
0 14 years, 1 month ago
Abigayl
BTW, I rarely check any tutorial beyond part 1 (even part 1 is daily at best), so the best way to reach me with a question is via PM in the forum or in my livestream: livestream.com/poweredbyflowers
0 14 years, 2 months ago
Abigayl
Aye, a lot of people wanted to see me make a platformer tutorial... of course I have to be able to MAKE a platformer first :P
1 14 years, 4 months ago
bergapappa
Sounds good, no really great!
0 14 years, 4 months ago
Abigayl
I plan on making an entire tutorial set for SW2.0. Instead of using an avoider game though, it will be based on a platformer.
0 14 years, 4 months ago
bergapappa
Thx Abigayl
Will you be making some tutorial about events in 2.0 for us newbies later?
Or redoing these with events.
Would teach us a lot!

Thx again

0 14 years, 4 months ago
Abigayl
To include for scrolling capabilities, you will likely have to add "x/y of camera" (Scene -> View palette) to your mouse x/y location or something similar (I have yet to work with that issue myself).
0 14 years, 4 months ago
majormax
The shooting doesn't seem to work well with scrolling. Any help?
0 14 years, 4 months ago

Sign In to Comment