Search found 32 matches

by databandit
Sat Jun 25, 2005 1:01 am
Forum: Beginners Help
Topic: player is hit
Replies: 1
Views: 176

player is hit

hi,
i am developing an FPS... but i don't know how to flash a red bitmap when the player is hit.... for example... if the enemy shoots the player... a red bitmap will flash for 50ms.... how do i do that??

thanks...
zubair
by databandit
Sat May 14, 2005 4:02 pm
Forum: Beginners Help
Topic: i need some help with AI
Replies: 4
Views: 480

well...
i took care of problem number 1...
by databandit
Sat May 14, 2005 9:02 am
Forum: Beginners Help
Topic: i need some help with AI
Replies: 4
Views: 480

i need some help with AI

Hi, I am developing an FPS game. I have almost everything done... except the most important thing: AI! I need help with two things: 1. How to make an enemy shoot me when I come near him 2. How to make the enemy keep facing towards me until I kill him. I also need some help with timing. For example.....
by databandit
Thu Apr 14, 2005 9:18 am
Forum: Beginners Help
Topic: creating transparent buttons
Replies: 2
Views: 230

actually... i was talking about the buttons which irrlicht gives to you... the GUI environment buttons...
by databandit
Thu Apr 14, 2005 2:14 am
Forum: Beginners Help
Topic: creating transparent buttons
Replies: 2
Views: 230

creating transparent buttons

hi
could someone please give me some code on how to make a transparent button?

thanks,
zubair
by databandit
Fri Feb 11, 2005 2:05 pm
Forum: Beginners Help
Topic: making enemy turn when i get close
Replies: 12
Views: 637

i've got another function which is almost the same except that it does not get the camera position every frame, but it get the camera position every time i press space...
by databandit
Fri Feb 11, 2005 12:28 pm
Forum: Beginners Help
Topic: making enemy turn when i get close
Replies: 12
Views: 637

OK, here's why I think the term "scope" is confusing here: it refers to which functions have access to which variable, not to whether a variable has valid contents. Say you have 3 variables, all named SomeVar: char *SomeVar; void func1() { int SomeVar; ... } void func2() { float SomeVar; ...
by databandit
Fri Feb 11, 2005 3:42 am
Forum: Beginners Help
Topic: MyEventReceiver not working :(
Replies: 11
Views: 1526

declare the class inside the main function
by databandit
Fri Feb 11, 2005 1:23 am
Forum: Beginners Help
Topic: making enemy turn when i get close
Replies: 12
Views: 637

I don't find the term scope confusing, I imagine most other programmers don't either, if someone wants it explaining I will tell them, but it should be something as a programmer knows. No disrespect... Its a good point that enemyNode might not be initialised, must have had my eyes closed!!! Store i...
by databandit
Thu Feb 10, 2005 2:21 pm
Forum: Beginners Help
Topic: updating camera position
Replies: 3
Views: 242

Anonymous wrote:Every frame?

How about........putting it in the main loop? It loops through successive frames.

while(device->run()) {
BeginScene etc.
...
EndScene etc.
--> xyz = camera->GetAbsolutePosition etc.
}
cant it be used in another function too?
by databandit
Thu Feb 10, 2005 1:22 pm
Forum: Beginners Help
Topic: updating camera position
Replies: 3
Views: 242

updating camera position

hi
can anyone give me some code on how to get the camera's position every frame . . . . i know the getAbsolutePosition function . . . but I need to know how to do it every frame...

thanks
zubair
by databandit
Thu Feb 10, 2005 11:37 am
Forum: Beginners Help
Topic: making enemy turn when i get close
Replies: 12
Views: 637

this is easier:
could someone please give me a piece of code where it will store the current . . . . . . X value of the camera? (every frame)

thanks,
-zubair-
by databandit
Wed Feb 09, 2005 2:05 pm
Forum: Beginners Help
Topic: making enemy turn when i get close
Replies: 12
Views: 637

swprintf(l1tmp, 255, L"%s fps:%d", l1driver->getName(), l1driver->getFPS()); l1statusText->setText(l1tmp); Check(); Before IrrDevice->endScene();??? If not at which point does it crash??? it crashes when it reaches the check function... when i remove the : checkpos = checkcam->getAbsolute...
by databandit
Sat Feb 05, 2005 11:07 am
Forum: Beginners Help
Topic: making enemy turn when i get close
Replies: 12
Views: 637

making enemy turn when i get close

hi . . . . i have a piece of code which, after you pass a certain point, executes . . . . but it doesnt execute and the whole program crashes... ISceneNode *checkcam; core::vector3df checkpos; while(l1device->run()) { u32 now = l1device->getTimer()->getTime(); if (now - sceneStartTime > timeForThisS...
by databandit
Sun Jan 23, 2005 2:35 am
Forum: Beginners Help
Topic: stopping an animation loop
Replies: 3
Views: 547

there's nothing similar to your animationframe < blabla . . . .