We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I would like to know how do I move an object by keyPressed and set the object to move to a specific speed and stop at a position and being able to move back slowly to its position.
Hi poopjoopx,
Have a look at this chapter from The Nature of Code: http://natureofcode.com/book/chapter-1-vectors/
It will get you started building a simple "mover" class.
Try to implement something and come back here if you get stuck.
Answers
Hi poopjoopx,
Have a look at this chapter from The Nature of Code: http://natureofcode.com/book/chapter-1-vectors/
It will get you started building a simple "mover" class.
Try to implement something and come back here if you get stuck.