TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Behavior help: Get powerup.
Pages:
1
Behavior help: Get powerup.
Rawr
Posts: 85
September 11, 2011, 06:29:26 pm
Well, I know how to do the health and invincible for stage powerups, but that's about it.
I'm asking about other stuff, like things you collide with to enable actions, ex. double jump, get new weapon or such.
Anyone?
Hectate
Posts: 4643
September 11, 2011, 10:57:15 pm
The way it works is you give the player the ability in your behaviors, but don't enable it unless a game attribute is true. Then, just set it true when they get the powerup.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.
Rawr
Posts: 85
September 12, 2011, 02:11:11 am
Okay, I got that to work.
But how about weapons?
Hectate
Posts: 4643
September 12, 2011, 03:45:15 am
Depends on the weapon selection. If it's all melee, you could just change the animation depending on the weapon and use attributes for the stats (damage amount, range, etc). When the player switches weapons, cange the attributes to match their new weapon.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.
Rawr
Posts: 85
September 12, 2011, 05:10:15 am
What if I want to use a different sprite for each weapon?
I currently use the weapon animation handler in the run and gun example.
Hectate
Posts: 4643
September 12, 2011, 05:38:00 am
I've not used that kit/example but from what I know of it, that is exactly how it's designed to be used.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.
Rawr
Posts: 85
September 12, 2011, 05:43:49 am
Well it handles the graphics fine, but using it kinda means you enable every weapon at the start of the game.
Hectate
Posts: 4643
September 12, 2011, 03:38:04 pm
Someone else will have to help you with the kit then, I'm not familiar with it, unfortunately.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.
Pages:
1