Hi! I'm trying to figure out Pin behavior and getting my player character to pick up adjacent objects by pushing a button. They then carry around the object above their head and then drop it by pushing the same button. This code works when I assign different buttons to pickup and drop, but not when I try to use the same button for it.
How do I get that to work?
Use a main event with sub events:
Keyboard on \/ pressed (Main event)
- Sub event: P1 is Carrying
--- Actions
- Sub event: else
Develop games in your browser. Powerful, performant & highly capable.
Use a main event with sub events: Keyboard on \/ pressed (Main event) - Sub event: P1 is Carrying --- Actions - Sub event: else --- Actions
That did the trick, thanks for the quick answer!