Move node

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Sam
Posts: 2
Joined: Wed Jul 21, 2004 8:18 pm

Move node

Post by Sam »

I newbie, and not so well know Irrlicht but all the same I try to understand, make something on this engine. And I have faced with a problem, standard examples do not help to resolve it, here that that is necessary to me: I press the button, we admit W... and the object starts to move on an axis x while I press the button, having released it stops to move. At first sight a simple problem, but...
P.S: I apologize for the bad English!
teddiebeer
Posts: 5
Joined: Thu Jul 15, 2004 9:45 am

Post by teddiebeer »

Hi,

Load the movement tutorial, in the event receiver find the following code:

Code: Select all

if (node != 0 && event.EventType == irr::EET_KEY_INPUT_EVENT&&
!event.KeyInput.PressedDown)
and remove the ! from the last condition.

Recompile and enjoy.

Regards
Teddiebeer
Post Reply