I want to make a Key go to the player’s x and y cordinates once it touches the key,how do i do this?
Sorry for the late response.
Have it turn on a switch. This switch is powered by an always block and activates:
Extractor of X position of the player, which goes into a position block,
Extractor of Y position of the player, which goes into a position block.
This should work. If it doesn’t then let me know!
Thanks very much for the response.I found that out myself some time later too
No problem! Glad I could help @bloons_family
I suggest having a look at the camera examples here https://flowlab.io/game/play/1548726
If you do what meburningslime said, the key will just stick to the player, if you use the “interpolate” expressions from the second dynamic camera example, the key will follow the player smoothly, like in mario games, which is what I’m guessing you’re trying to emulate
P.S: here’s the video that goes with the camera examples https://youtu.be/H9ZFzNy0Jy4