Note: Tried to make Card Key Hover, I'm not sure what the "Z" coordinates are to make it go up and down in the air for 3D. So, I had to use the "Y" coordinates to make it go from top to bottom, on the ground. The "X" coordinates made Key go through the wall, side to side. Z goes top to bottom in air.
Note: Not in video, I added two walls on each side for the Card Key, so the card does not go to far from location. obj_wall_obj_card make sure its solid, and collision is on obj_card and once it hits the wall it will do a reverse direction.
obj_card
Events:
Create
Actions:
direction = choose(180,0);
speed = 0.2
Alarm 0 for 5 sec.
Events:
Alarm 0
Actions:
direction = choose(0, 180); .
speed = 0.2
Alarm 1 for 5 sec.
Events:
Alarm 1
Actions:
Alarm 0 for 5 sec. ///So this means, it goes back and repeats the movement /////for the Card Key.