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.

3 Dimensional Chat / Animation to guns.

Author
Message
Ad87am
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: England / London
Posted: 29th Sep 2005 20:22
I have a few issues here.
1- I have been trying to make 2 missiles shoot at once when a button is pressed, but not sure how to clone it 2 times. Code is here if anyonen can help -
-

2. Not quite sure how to animate stuff. Say i needed the missile to show smoke coming out of the back when launched and when it collides with another object, do i need to do the animation in a modeling software and export it?

3. Need a little info on collisions. I have a level i made that is in a .X format so i think that the collision are a little more tricky then a simple matrx.

4. A little on sound, can sound be attached to an object? If i wanted a sound for when the missile shoots off, can it be attached to it so that when it moves away from me, it fades out.

Any info would be helpfull
Thanks for your time.

http://www.Bevansfunbox.com
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 29th Sep 2005 22:40
1. here is a quick snippet from a game I have long put on the shelf. I had all the bullets built in a for next loop earlier in the program and hid them until the AA was fired...




then I could manipulate the code for each bullet see your code below to work with a for loop type routine...



2. Animation has to be built (or bought or whatever)



3. I struggle with finely tuned collision
4. Haven't even gone there yet, too many other important things to work out first...

Hope some of this helps, even if a little.... next time post it in newcomers or dp discussion forum this area is really more focused on the 3-d itself
Ad87am
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: England / London
Posted: 30th Sep 2005 01:13
Not quite sure what you mean by, I also forgot to say that i needed it so there is a reload time. If the object doesent exist, then it cant shoot, and everytime that the the shoot key is pressed, it hides the object and a new one is cloned in the same place and moved off, but when you let go of the shoot key the object appears so i need it to wait like 5 to 8 seconds before it appears, but not sure how to do that because the wait command makes everything wait. Also didnt understand what you ment by built animation. I can do animation my self in 3D max.

http://www.Bevansfunbox.com
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 30th Sep 2005 06:34
Quote: "Also didnt understand what you ment by built animation. I can do animation my self in 3D max."


Yes you need to build some sort of animation to represent the smoke trail, or use particals....once started the loop command will just play the animation over and over and over till you tell it to stop....

Quote: " I have been trying to make 2 missiles shoot at once when a button is pressed, but not sure how to clone it 2 times"


why clone it when you can just as easily create several instances of the same object using the for next command...

You have your master, replicate it 99 times for 100 total, press key and numbers 1 & 2 fire, inc the loop so that the next time the key is pressed 3 & 4 fire and so on and so on...

for time delays the timer() command works but it's a little more detailed and you will have to play with it a bit in order for it to work for your application... Basically you can time stamp your fire missile key press, check against the system time and if a certain amount of time has passed the program will execute again on the next keypress...

Another way is to run a counter against the frame rate and when the counter reaches zero the new objects will appear...

sorry I don't have the burning desire to write the code for you tonight, maybe someone else is willing...
Ad87am
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: England / London
Posted: 30th Sep 2005 22:29
Ok thanks for the info, i will look up some of thoes methods and see what i can make of them.

http://www.Bevansfunbox.com

Login to post a reply

Server time is: 2024-11-27 15:36:29
Your offset time is: 2024-11-27 15:36:29