Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / my enemies won't show up

Author
Message
haYnguy
16
Years of Service
User Offline
Joined: 5th Jun 2008
Location: on my island
Posted: 17th Jul 2008 19:20
so i tried to create enemies which use the same mesh, have different objectID's, scaled to a decent size are positioned in random locations, and are added to a dynamic array of Enemy objects. For some reason, they aren't showing up anywhere.

here's what I'm doing:



the i + 5 is used because objects 1 through 4 are used already and I wanted to be able to use i to index the dynamic array..

any ideas as to what's wrong?

-- from my island, aloha wau 'ia 'oe --
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 19th Jul 2008 07:09
might help if you showed us all of the code

~you can call me lantz~
haYnguy
16
Years of Service
User Offline
Joined: 5th Jun 2008
Location: on my island
Posted: 19th Jul 2008 09:48
what more do you want? this is all the code there is. the function is called before the main game loop.

-- from my island, aloha wau 'ia 'oe --
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 19th Jul 2008 15:01 Edited at: 19th Jul 2008 15:04
It looks like there may be 2 possibilities (without having the models to try out).

1)"dbScaleObject(i+5,5,5,5);" you are shrinking the models to 5% of their model size.
Are you sure the models are not becoming too small to view?

2)"dbPositionObject(i+5, i + rndX , 0, i + rndZ);" You are placing the models 0,0,0 point at a height of adsolute "0".
Are you sure the models are actually above the height of the ground mesh so that you can actually see them ?

Login to post a reply

Server time is: 2024-11-20 17:32:44
Your offset time is: 2024-11-20 17:32:44