View Full Version : Adding speed to bullets
Drezer
February 6th, 2009, 10:32 AM
I have finally got the movieclip to show up when i hit the ctrl key. but it just sits there because i have not yet added a speed. what would be the simplest way of doing this? what i want to move is a bullet.
sam_vickery
February 6th, 2009, 11:01 AM
I have finally got the movieclip to show up when i hit the ctrl key. but it just sits there because i have not yet added a speed. what would be the simplest way of doing this? what i want to move is a bullet.
are you moving the bullet on just one axis for example just to the right or do you want it to aim towards the mouse?
Drezer
February 6th, 2009, 05:58 PM
are you moving the bullet on just one axis for example just to the right or do you want it to aim towards the mouse?
just to the right on the X axis.
sam_vickery
February 6th, 2009, 06:18 PM
just to the right on the X axis.
on the frame of the bullet just add
_root.onEnterFrame=function(){_x+=(how ever fast you want try like 5)}
that is for as2 but I dont know if it will work for as3
Drezer
February 6th, 2009, 06:22 PM
on the frame of the bullet just add
_root.onEnterFrame=function(){_x+=(how ever fast you want try like 5)}
that is for as2 but I dont know if it will work for as3
yea i am working with AS3. they got rid of _root, and onEnterFrame to auto check.
substance
February 6th, 2009, 06:39 PM
Drezer, use search.
This question has been asked and answered plenty of times in the past.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.