I've searched everywhere ... POWER UP tutorials ?

David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
edited January 2012 in Working with GS (Mac)
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, :D
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

  • MotherHooseMotherHoose Member Posts: 2,456
    make an index type attribute: ballCount … set the value to the number of ball Player starts with

    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_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    @MotherHoose : as awesome as that looks, it means nada to me by just looking at it. Id have to follow along to a video, Im a visual learner and not that great with Code. Im gonna try it tho, and @redsky is gonna do a video as well so we'll see how it goes !! Still can't thank you enough for taking time outta your day and trying to help !! Thats why I love the GS Forum !!

    David
  • MotherHooseMotherHoose Member Posts: 2,456
    edited January 2012
    ah me too @David_GryphonsRealm … like to "see" everything; that's why I love GS!

    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_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    edited January 2012
    @MotherHoose : Yea whats your gmail ? lemme guess ( actual email that I believe to be tru ) :D

    David
  • MotherHooseMotherHoose Member Posts: 2,456
    edited January 2012
    @David_GryphonsRealm
    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
  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    @MotherHoose : Hows that ? LOL !!
  • MotherHooseMotherHoose Member Posts: 2,456
    Great! @David!

    you deal with NervousNellie and ParanoidPete when you deal with me!

    hope your problem is solved!

    @};- MH
  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    @MotherHoose : not just yet but @RedSky is gonna make a video tut. But ima email you and if you want u can provide me with the GS File that you tested yours on :D

    David
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Okay so on the ungs guide under actors watch Detect if actor gone from a scene. That might get you in the right direction as you can determine if you have three ball actors when two of them are gone.
  • tutysestutyses Member Posts: 134
    David, i dont want to sound rude, but i suggest you to play with gamesalad behaviors and explore it before making your first project, i didnt learn how to make "power ups" i just make a way to do it.. its better to know how to create the things you want instead of asking each time you want to do something (sometimes you will need to ask when you dont know how why something is not working or you dont have any clue)
    Again, i dont want u to thing i m the bad guy :P
  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    @tutyses : naw i understand where your coming from but like my post said. I've searched a lot !! and tried different things. so i have been doing my end. I'm not the type that just wants things handed to me. i try on my own and then when i can't think of any other ways i go to the forums. but again, i know where your coming from :D

    David
Sign In or Register to comment.