actions

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
Coolkat
Posts: 25
Joined: Sun Mar 28, 2004 1:44 am
Location: U.S.A.

actions

Post by Coolkat »

in Irrlicht you have actions like

EKA_MOVE_FORWARD
EKA_MOVE_BACKWARD

etc.

if you were making a FPS game, how would you do jumping or crouching? since there is no

EKA_JUMP
EKA_CROUCH

is this just not a capablitity or would you have to do this manually?
IcePump Gaming
under construction
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

Those action keys were implemented for the fps camera scenenode, i think. If you want to write a fps game (there is need of much more actions as you said jumb, crouch, swim and whatever) you will have to implement it yourself. But that should not be a big deal.
Coolkat
Posts: 25
Joined: Sun Mar 28, 2004 1:44 am
Location: U.S.A.

Post by Coolkat »

how would i go about implimenting something like that? im sure i could write it if i knew how the engine worked.. but it seems like it's defined in an ENUM.. i could add it but it wouldn't do much..
IcePump Gaming
under construction
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

Do you want to have something like a state machine?
Or do you want the model (md2 or whatever) to crouch?
Coolkat
Posts: 25
Joined: Sun Mar 28, 2004 1:44 am
Location: U.S.A.

Post by Coolkat »

errr... i want the model to crouch so when im doing multiplayer mode the others see the model crouch.. but since when you are playing you don't see the model.. i want the camera to go down so it can fit threw small areas.. and also the model can jump so it moves into higher areas.
IcePump Gaming
under construction
Domarius
Posts: 178
Joined: Thu Mar 11, 2004 9:51 am
Location: Brisbane, QLD, Australia

Post by Domarius »

All things in a game need to be tested for collision. The player is no different (if you want to be able to walk up stairs, etc)

So you need to change the size of the player's collision box, sphere, cylinder, whatever you're using, to make it smaller when they are 'crouching'.

If you are using the built in FPS collision and movement for Irrlicht, you need to find the setting that lets you modify the player collision size.

The other thing to do would be move the camera down.
Post Reply