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
[Q] Crosshair?
-
- Posts: 18
- Joined: Mon Aug 27, 2007 5:40 am
- Location: Vienna, Austria
[Q] Crosshair?
Nope.
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
In my variable section :
In my initialisation code
in my main loop
Hope it helps
The offset is so the cursor image fits into the right hotspot
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);
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
-
- Posts: 18
- Joined: Mon Aug 27, 2007 5:40 am
- Location: Vienna, Austria
-
- Posts: 219
- Joined: Fri Apr 13, 2007 8:29 pm
- Location: Illinois
- Contact:
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact: