Search found 19 matches

by screwgh
Fri Nov 14, 2008 5:26 pm
Forum: Beginners Help
Topic: FOV
Replies: 5
Views: 759

Hi

Just a small update I still didn`t get it working but now I use collision detection so the enemy can see me if I am near him.

Just a quick solution I am still working to get the FOV right I keep you updated
by screwgh
Wed Nov 12, 2008 1:40 pm
Forum: Beginners Help
Topic: Moving enemy waypoints and FSM[SOLVED]
Replies: 2
Views: 482

Thanks

Hi,

Thanks for the reply but I already figured that out that is why the others are working. I have a function that looks wich waypoint the enemy is the closest to and then set a new target. Beside this I have a function that let do make him a round so when at A go to D etc.. I know when the enemy ...
by screwgh
Tue Nov 11, 2008 2:09 pm
Forum: Beginners Help
Topic: Moving enemy waypoints and FSM[SOLVED]
Replies: 2
Views: 482

Moving enemy waypoints and FSM[SOLVED]

Hi,

I am just clueless at the moment I having a weird acting enemy in my game. The enemy needs to walk from waypoint A to B to C to D and back to A. This is going good when I just say that he needs to walk from A to B or B to C or C to D or D to A. But now it comes the enemy needs to make a round ...
by screwgh
Tue Nov 11, 2008 1:51 pm
Forum: Open Discussion and Dev Announcements
Topic: Code cpp and .h
Replies: 5
Views: 1122

Explanation

Hi,

Thanks for all the replys it helped me understand it a lot more. I hired the book C++ in a nutshell at a library but it does not explain this situation at all.

Edit----14-11-08
Hi,

Today started with classes, .cpp and .h files the proper way. Not that the code going to be more clean because ...
by screwgh
Mon Nov 10, 2008 4:41 pm
Forum: Open Discussion and Dev Announcements
Topic: Code cpp and .h
Replies: 5
Views: 1122

Code cpp and .h

Hi,

I just rearanged my code into a bunch of .h files and everything works fine. But the question that sticks to my mind is why does some projects also have more .cpp file almost every .h has a .cpp file why is that?

Do I need to do this also for my project and why is that? Also how do I do it? I ...
by screwgh
Thu Oct 30, 2008 1:21 am
Forum: Beginners Help
Topic: FOV
Replies: 5
Views: 759

Tried

Hi,

Thanks for the reply but I already tried that this draws to triangles one on the place where it needs to be and the other attached to the enemy. Weird here some pics

Now I use vertex so I can fill it with color it easier to use

This is the basic position where it must come
http://img247 ...
by screwgh
Thu Oct 30, 2008 12:58 am
Forum: Beginners Help
Topic: FOV
Replies: 5
Views: 759

FOV

Hi,

I am trying for several of days to make a FOV(Field Of View) but I got stuck all the time.

I have the following code

part of enemy.h

void drawFOV()
{
IVideoDriver* driver = device->getVideoDriver();
vector3df e = enemy->getPosition();
triangle.set(vector3df(0, 0, 0),vector3df(-50, 0 ...
by screwgh
Mon Oct 27, 2008 10:53 pm
Forum: Everything 2d/3d Graphics
Topic: Fast and easy level making
Replies: 2
Views: 1413

Fast and easy level making

Hi,

I searched this forum and the internet for some simple levels that I can use for my irrlicht game, but not with succes. I wanted to download levels because modeling is not my strongest side and it saves time. So to help everyone out that is in the spot as me here a little bit of help.

A couple ...
by screwgh
Sat Oct 18, 2008 2:41 am
Forum: Code Snippets
Topic: Crosshair explanation
Replies: 5
Views: 3719

Crosshair explanation

Here a bit off code snippet to make a crosshair:

put this following code in you`re while loop but remember to put this after drawAll otherwise it won`t work.


while(device->run())
{


driver->beginScene(true, true, SColor(255,100,101,140)); //Must draw between begin and end. Begin drawing ...
by screwgh
Sat Oct 18, 2008 2:26 am
Forum: Beginners Help
Topic: Small enemy collision problem[Solved]
Replies: 19
Views: 4500

The solution

Hi everybody,

I am still working to get collision working like I want but like I said it does pretty much like what I want so here I give the solution what I thought off. Hopefully I help someone with the code.

Collision.h

//Including the files


//defining the namespaces to acces easier ...
by screwgh
Fri Oct 17, 2008 2:13 am
Forum: Beginners Help
Topic: Small enemy collision problem[Solved]
Replies: 19
Views: 4500

New progress

Hi,

After rethinking the shoot and started from scratch. I got finaly something working still with the flyStraightAnimator because this works good with straight bullet flying. I changed the billboard with a sphere. And changed some things. He hits the native enemy and then the bullet disapears it ...
by screwgh
Wed Oct 15, 2008 4:09 pm
Forum: Beginners Help
Topic: Small enemy collision problem[Solved]
Replies: 19
Views: 4500

So the bottom line is that I should think more about the aspects of colission and try to figure a own colission detection and a shoot meganism?

a little offtopic
I always thought that good copy pasting of code was a programmers way of living why try to invent something that already excist. After ...
by screwgh
Wed Oct 15, 2008 2:12 pm
Forum: Beginners Help
Topic: Small enemy collision problem[Solved]
Replies: 19
Views: 4500

Thanks

Thank you for the clear explanation.

But I don`t understand I realy, because I just use the flyStraightAnimator for the bullit to fly to his end position. But the colission detection happens every frame that is why it is in the while(device->run()) loop. Correct me if I am wrong.

Beside that at ...
by screwgh
Wed Oct 15, 2008 3:15 am
Forum: Beginners Help
Topic: Small enemy collision problem[Solved]
Replies: 19
Views: 4500

A little bit further

I see there are a lot of problems with colission on the forum. I got a little but further but he still doesn`t do what I want.

The checking of colission is going well I can check te enemy now without
errors but the ISceneNodeAnimator* anim = 0; wont drop.

here is some important code:

main.cpp ...
by screwgh
Tue Oct 14, 2008 11:28 pm
Forum: Beginners Help
Topic: Small enemy collision problem[Solved]
Replies: 19
Views: 4500

Hi

Thanks for youre reply I gonna take a look of what I can use.