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 / Weird bug + some neat code

Author
Message
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 19th Jun 2008 16:00
Can anyone explain why when I comment out
dbInstanceObject(3 + i, 3);
dbPositionObject(3 + i, cur->x, cur->y, 0);
The space ship flies correctly on 2 axis, but when I uncomment those lines the spaceship only flies along the y-axis with no z-movement? (Assuming spacebar has been pressed?)

This bug makes no sense to me!!!!

Also if you want to try out my game, "Asteroids 2008: The Duel", no resources are required, just plug & play with the code. It might also make a good tutorial! PS - Game not complete or even working very much.



http://overspace.panddpictures.net
SourceForge: OverSpace
FERSIS
18
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 19th Jun 2008 17:06
maybe
dbPositionObject(3 + i, cur->x, cur->y, 0);
z value is 0 , so its being positionated to 0?
Cheers
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 19th Jun 2008 18:00
Whoops, I meant x not z! Sorry, my bad...where's the edit button on this forum???

http://overspace.panddpictures.net
SourceForge: OverSpace
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 19th Jun 2008 22:16
Never mind, it's an API bug and I coded around it. Do I get a prize for finding bugs in the API?

http://overspace.panddpictures.net
SourceForge: OverSpace
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 19th Jun 2008 23:33
Ooh, if I ever get a prize on TGC, I want it to be a forum banner!

If you can do any models for FW, reply to the FleetWars thread.

Click here!
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 19th Jun 2008 23:34
That would be a cool prize.

Login to post a reply

Server time is: 2024-09-29 23:20:56
Your offset time is: 2024-09-29 23:20:56