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 / Simple shooting problem

Author
Message
jj882
13
Years of Service
User Offline
Joined: 6th Dec 2010
Location: Bham, UK
Posted: 3rd Apr 2011 18:21
have a problem guys

trying to create a simple shooting method from my plane
the code i have so far is as follows:
i have previously declared at the top





all i want to have is the plane (id of 3) to shoot spheres forwards towards targets however at the moment it just spawns the spheres and they stay behind mid flight, not actually moving. I know i have to update the z pos but not sure how to do this.
hopeing somebody out there could help me

Jimmy J
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 4th Apr 2011 00:41
Set the bullet orientation to the plane orientation and then dbMove() the bullet in your loop.

jj882
13
Years of Service
User Offline
Joined: 6th Dec 2010
Location: Bham, UK
Posted: 4th Apr 2011 14:42
I have tried this however the spheres are still left behind where try are spawned and I get problems with my terrain.

Jimmy J
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 4th Apr 2011 15:30
Post your code where you move the bullet, what problems do you get with your terrain?

Login to post a reply

Server time is: 2024-11-19 12:23:09
Your offset time is: 2024-11-19 12:23:09