Does anyone know...
mdk5316
Member Posts: 26
Is there a way to make spawned actors have there own gravity? By this i mean... if I spawn an actor and want to click it, on that click, can i toggle between positive and negative gravity? I dont want to accomplish this using different accelerations
Comments
have a attribute called gravitydirection and set it to 0
have a rule in the actor when touch is pressed change attribute gravitydirection to (gravitydirection+1)%2
that will let u toggle between 0 and 1 so if its 0 and u press it goes to 1 if its 1 and u press it goes to 0, ect.
then have a rule in the actor when attribute gravitydirection=0 accelerate direction 270 relative to scene
then have another rule in the actor when attribute gravitydirection=1 accelerate direction 90 relative to scene
cheerrs