[Q] Crosshair?

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
MetaMapper
Posts: 18
Joined: Mon Aug 27, 2007 5:40 am
Location: Vienna, Austria

[Q] Crosshair?

Post by MetaMapper »

Um... hi dudes...
I need ur help, today i began to code my first shooter. I loaded my first
map and initialised gravity and collision. Well i dont know how to make a
crosshair xD? can u help me guys?

would be great i u answer,
greetz, the n00b who needs a crosshair ;D
Nope.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

In my variable section :

Code: Select all

	gui::IGUIImage*			g_mouse;

In my initialisation code

Code: Select all

g_mouse = guienv->addImage(driver->getTexture("g_cur_mcur.png"),cur->getPosition(),true,0,1111);
in my main loop

Code: Select all

g_mouse->setRelativePosition(core::rect<s32>(cur->getPosition().X+3,cur->getPosition().Y+3,cur->getPosition().X+19,cur->getPosition().Y+19)); 

Hope it helps


The offset is so the cursor image fits into the right hotspot
MetaMapper
Posts: 18
Joined: Mon Aug 27, 2007 5:40 am
Location: Vienna, Austria

Post by MetaMapper »

EDIT: got it... no questions any more... thanx dude =D
Nope.
FlyingIsFun1217
Posts: 219
Joined: Fri Apr 13, 2007 8:29 pm
Location: Illinois
Contact:

Post by FlyingIsFun1217 »

I've noticed that throughout your posts, it seems that you are making a FPS game (hey, I can read :P).

Since I am attempting to do the same thing, it would be cool if I could get a link to the cvs/svn server, nightly source downloads, whatever possible. Maybe a website?

FlyingIsFun1217 :)
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

Im not exactly sure who you are referring to :P

He is making a fps, he said so himself .

Mine is a more detailed approach than just one view , ill keep posting im working on the demo, as soon as i can get to it, i will show new shots and playable pieces :)
Post Reply