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 / Limbs hate me :(

Author
Message
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 17th Jun 2008 22:31
heres an interesting error i don't understand even 1%. I decided to make my ship game pseudo 3d and reminiscent of Gradius. All well and good. Except im using 2 limbs. One to mark the position of the booster particle effect. (which will have another limb to help orient the direction to fire it). and another limb to orient the front for shooting. Now the problem is im getting strange conflicts with my ship object and its limbs. heres my source:

Main:

player.h:

pitching.h:

v_move.h:

refresh.h:


now it worked flawlessly...until i added those limbs. When I added the limbs, all of a sudden limb#1 was being treated as the root object. But limb number one was referring to both the root object(the ship) and the limb. Limb number 2 referred to the second limb. and number 3 refrerred to just the ship. I didnt even make a number 3!! i colored the limbs to check which was which and sure eneough the id's are all messed up. any ideas??

Your signature has been erased by a mod - please reduce it to 600x120
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 18th Jun 2008 10:42
nobody knows the answer to this one? im really stuck...

Your signature has been erased by a mod - please reduce it to 600x120
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 18th Jun 2008 19:33 Edited at: 18th Jun 2008 21:22
Hi Vesper103,

Here is some documented sample code:


Your problem is that you are not keeping track of already used ID numbers.

My first attempt at this also.....had me puzzled for a while

EDIT: and again I also forgot to include before exiting

//free up resources
dbDeleteObject(1)//ID1 is freed up//used ID numbers (NONE)

As you can see, I am a noob also.
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 19th Jun 2008 02:20
okay thank you for your help. ill disect that source

Your signature has been erased by a mod - please reduce it to 600x120

Login to post a reply

Server time is: 2024-11-20 13:30:12
Your offset time is: 2024-11-20 13:30:12