Is there a way to dampen collision detection or limit it?

SquareHeartSquareHeart Member, PRO Posts: 69
edited November -1 in Working with GS (Mac)
I'm working on a little game that relies on the player picking up "fuel", it's critical to the level design that only the exact amount of fuel is added - currently I have a rule for my player avatar that says : On collision with X, change attribute "fuel" to "fuel+20".
this is great and good for about 70% of the time, for the other 30% the collision triggers twice or three times when the player collides with the fuel sprite (and thus the player gets to romp through my clever level designs willy-nilly).

My question is - is there an efficient way to dampen the collision detection to not be so twitchy, or limit the collisions on the fuel sprite to only ever be able to be collided with once (and I mean PROPERLY once).

I'm thinking I'd have to do a work around with a boolean game attribute - i.e collision triggers boolean to true - then have a rule - if true add X amount of fuel to player.

Comments

  • FranzKellerFranzKeller Member Posts: 517
    or destroy the actor after fueling.

    or have a time limit for the fuel tank to reactivate
Sign In or Register to comment.