Working with moveable actors
metz044
Member Posts: 9
Is there anyone to make an actor moveable by the player but not moveable whenever another actor comes in contact with it during gameplay. For example, If I wanted to user to be able to move a platform (change the angle) but whenever the actor (character in the game) jumps on the platform it always flys off the screen.
TLDR How do I make an actor moveable by the player but not moveable by another actor coming in contact with it during gameplay?
TLDR How do I make an actor moveable by the player but not moveable by another actor coming in contact with it during gameplay?
Comments
is this what you're asking?
Have 2 real attributes and 1 interger
name the 2 real platformx and platformy, and the interger moveplatform.
In the platform constrain platform x to self position x, and constrain platform y to self position y.
Have a rule when touch is pressed change attribute moveplatform to 1
Have a rule when touch is released change attribute moveplatform to 0
Have a rule when moveplatform=0 constrain self position x to platformx and constrain self position y to platform y
And have a rule when attribute moveplatform=1 constrain attribute self position x to mouse position x and constrain self position y to mouse position y