how to move in your game

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
avo18
Posts: 27
Joined: Thu Dec 14, 2006 5:46 pm

how to move in your game

Post by avo18 »

i have a map i maded in 3dstudio max , the map calls test.3DS but now i whont to move in the map but , i realy dont know how i can do that .

i hope you can help me .

i know only the basic of C++ .
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

The collision tutorial (#07.Collision) covers this... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
avo18
Posts: 27
Joined: Thu Dec 14, 2006 5:46 pm

Post by avo18 »

ware can i find the tutorial for this ?
jun
Posts: 12
Joined: Thu Dec 07, 2006 5:00 pm

Post by jun »

in the examples folder inside the zipfile that irrlicht comes in
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I always wonder why people download Irrlicht and don't have a look for what's coming with it !?!?! :roll:
The directory structure of the sdk isn't that complicated...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
avo18
Posts: 27
Joined: Thu Dec 14, 2006 5:46 pm

Post by avo18 »

ok thanks :)

this code

Code: Select all

scene::ICameraSceneNode* camera = 
		smgr->addCameraSceneNodeFPS(0, 100.0f, 300.0f, -1, 0, 0, true);
	camera->setPosition(core::vector3df(-100,50,-150));

	scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
		selector, camera, core::vector3df(30,50,30),
		core::vector3df(0,-3,0), 
		core::vector3df(0,50,0));
	camera->addAnimator(anim);
	anim->drop();
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Yes, that's correct, and for the level you'll have to create a collision response, too !!!
Look how it's done for the Quake map and simply change it to your map... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
avo18
Posts: 27
Joined: Thu Dec 14, 2006 5:46 pm

Post by avo18 »

i have a error but dont know how to solve it .
its says there is someting wrong in the selector .

------ Build started: Project: Project1, Configuration: Debug Win32 ------
Compiling...
game.cpp
.\game.cpp(67) : error C2065: 'selector' : undeclared identifier
Build log was saved at "file://c:\Documents and Settings\Eigenaar\Bureaublad\Counter strike 9.0 my game\Project1\Debug\BuildLog.htm"
Project1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You are using a variable named 'selector' without having told the compiler the type of the variable. This is a basic C++ question.

Code: Select all

ITriangleSelector* selector;
avo18
Posts: 27
Joined: Thu Dec 14, 2006 5:46 pm

Post by avo18 »

thanks :)
Post Reply