I've searched everywhere ... POWER UP tutorials ?
So I have searched everywhere from Yooutube to TSB's gshelper.com and for the life of me I can't find not even a simple tutorial on how to add power ups in your games, kinda like Jetpack joyride but all i need is simple things just to learn some logic and code behind it. Like I'm working on a simple breakout type game ( much simpler tho ) and i was thinking about adding a random power up that gave the player like "Multi Balls" and then if those new balls "died" it would not affect the player until there was one left. Im not sure if I'm making any sense here,
well i hope ya'll can help me with this or its back to the drawing board for me, lol
thx in advance
David

well i hope ya'll can help me with this or its back to the drawing board for me, lol
thx in advance
David
Comments
on your powerUp actor:
Rule: when
Actor receives event: overlaps or collides with actor of the type Player
--changeAttribute: game.ballCount To: game.ballCount +(random(1,4))
--Timer: After: 0.01
----Destroy this actor
on any controlActor you want to use: …could use the actor that is displaying the ballCount
Rule: when
Attribute: game.ballCount > 10 (the maximum # of balls you want the Player to have)
--changeAttribute: game.ballCount To: 10
on enemy:
Rule: when
Actor receives event: overlaps or collides with actor of the type Player
--changeAttribute: game.ballCount To: game.ballCount-1
on PlayerActor:
Rule: when
Attribute: game.ballCount = 0
--whatever you have to end level/game
@};- MH
David
for instructions like I posted … it is sometimes easier to highlight and copy/paste in a textFile
that way you can keep them open and refer to them as you work on your project.
or, I could send you the projectFile … I tested this in … eMail me at gmail
@};- MH
David
please,please edit your post and remove the reference to actual email addresses!
bots sprout all over the web and look for that format … and sell addresses to spammers!
@};- MH
you deal with NervousNellie and ParanoidPete when you deal with me!
hope your problem is solved!
@};- MH
David
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Again, i dont want u to thing i m the bad guy :P
David