So I tried the search function, apologies if this ahs already been answered, i didn't find an answer.
I want to make an elevator. Basically a sprite that sits there. Player walks in, presses the UP arrow. Elevator checks what floor we are on and if we are on floors 0 1 2 elevator goes up. if we are on floor 3 elevator cant go up.
same goes for down, obviously.
i tried many approaches withg ravity, 8 way movement,s bullets, variables and whatnot. no idea how to do that
would somebody be so kind and nudge me into the right direction?