Need help with collecting token and reward $$$

FoolishMeliFoolishMeli Member Posts: 5
edited July 2013 in Working with GS (Mac)
I have my game almost ready but theres one thing I cannot figure out, I want my player to collect a token and this token will give my player a vehicle for a short amount of time, I seriously have no idea how to go about this. if anyone can help me out I'd appreciate it, i'm willing to pay for an example or template or anything. Thank you.

Comments

  • WingmanappsWingmanapps Member Posts: 458
    Create a new game integer attribute called "token"
    -------------------------------------
    On your player actor:

    Create a new rule
    If player overlaps/collides with token
    Change attribute game.token = 1
    --------------------------------------
    On your player actor:

    Create a new rule
    If game.token = 1
    Change image (to a player in a vehicle)
    otherwise
    Change image (normal player image)
    --------------------------------------
  • joshiwujoshiwu Member Posts: 207
    THis is not the only way nor the best way, Here is something else you could do.
    IF vehicle collides with Player
    Constrain X and Y to vehicle.

    THEN Goto your core controls. (IE. left right shoot) And set them in a rule
    If (Driving)=False
    Do (Linear velocity)
    ELSEIF(Driving)=False
    Do(Accelerate)

    (because vehicles accelerate)
    THis will involve Quite a few attribute. But I say DIVE IN! No one wants a boring salad.I used double tap on vehicle to dismount.
  • WingmanappsWingmanapps Member Posts: 458
    edited July 2013
    THis is not the only way nor the best way, Here is something else you could do.
    IF vehicle collides with Player
    Constrain X and Y to vehicle.

    THEN Goto your core controls. (IE. left right shoot) And set them in a rule
    If (Driving)=False
    Do (Linear velocity)
    ELSEIF(Driving)=False
    Do(Accelerate)

    (because vehicles accelerate)
    THis will involve Quite a few attribute. But I say DIVE IN! No one wants a boring salad.I used double tap on vehicle to dismount.
    This makes no sense - have you even read the question
Sign In or Register to comment.