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!
Move node
-
teddiebeer
- Posts: 5
- Joined: Thu Jul 15, 2004 9:45 am
Hi,
Load the movement tutorial, in the event receiver find the following code:
and remove the ! from the last condition.
Recompile and enjoy.
Regards
Teddiebeer
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)
Recompile and enjoy.
Regards
Teddiebeer