catching dropping objects
AKB
Member Posts: 7
Hello,
I have a plate that's movable my touch. The user, through moving the plate, tries
to catch items dropping. How can I have items that are caught or touch the plate
stick to the intial position they touched the plate at. Details would be very helpful,
as I am relatively new to GameSalad.
Thanks!
I have a plate that's movable my touch. The user, through moving the plate, tries
to catch items dropping. How can I have items that are caught or touch the plate
stick to the intial position they touched the plate at. Details would be very helpful,
as I am relatively new to GameSalad.
Thanks!
Comments
You need to constrain the plate's x position to a global integer attribute (call it game.plateX or something).
Then in the falling item:
Rule - when actor collides/overlaps with plate
constrain self.position.X to game.plateX
constrain self.position.Y to (whatever the Y value is for the plate as I am assuming you are only moving it back and forth.)