W
Wuzzems
Guest
I'm relatively new to coding.
Let's say I have a player object, and I want this obj_player to be able to move between three points on the y axis.
The first point will be the center of the y axis (room_height/2)
the other two points will be the halfway point between the center and the top and bottom of the room
point 2: (room_height/2)/2
point 3: (room_height/2)*1.5
I want to be able to press up once and for the obj_player to move to the point above it, same story for pressing down once. How might I go about implementing this? Also please mention in which Events all of this needs to be implemented to.
Let's say I have a player object, and I want this obj_player to be able to move between three points on the y axis.
The first point will be the center of the y axis (room_height/2)
the other two points will be the halfway point between the center and the top and bottom of the room
point 2: (room_height/2)/2
point 3: (room_height/2)*1.5
I want to be able to press up once and for the obj_player to move to the point above it, same story for pressing down once. How might I go about implementing this? Also please mention in which Events all of this needs to be implemented to.
Last edited by a moderator: