yes, as lcl was saying in the final post i think. you can still do xvelocity or yvelocity using x or y += by using a vatiable, this is useful because it menas that physical response doesnt stop movement. it can be used as so..
(key right)
- Code: Select all
speed+=1;
(key left)
- Code: Select all
speed-=1;
(draw actor)
- Code: Select all
x+=speed;
it has issues with stopping when it hits something when like this though, so you would need to set it to 0 or use speed-=1 when it hits things its supposed to stop on.
xvelocity and yvelocity are a constant speed in a y and x directions, adding or taking from this changes that speed and physical response makes a direct change to it.
i personally only use x and y velocity for things like jumping, then x+=speed or x+=xvel or something along those lines for movement.
probably not helpful but wth
savvy