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.

Newcomers DBPro Corner / my code wont work right

Author
Message
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 23rd May 2004 01:51
basically what im trying to do is get the sphere to shoot in the same direction the cylinder is pointing. it doesnt want to work tho


DANGIT NEO, YOU CHANGED THE CODE AND NOW THE MATRIX WONT TEXTURE RIGHT.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd May 2004 12:15
First of all, take out the "make object sphere" from the function. Create the sphere outside of the main game loop. To fire it in the direction of the cylinder:

rem call this once to point the bullet in the right direction
SET OBJECT TO OBJECT ORIENTATION bullet, cylinder

rem called until bullet dies or hits something
move object bullet, 1

"eureka" - Archimedes

Login to post a reply

Server time is: 2024-09-22 10:35:12
Your offset time is: 2024-09-22 10:35:12