I have the following player control script
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += 5; Q95.com - WFBQ Classic Rock Indianapolis - Home of:: Shes got legs, she knows how to use them. She never begs, she knows how to choose them Find out how you can make a difference in the ongoing Haiti Earthquake relief efforts, http://www.q95.com/HOME | Panoramas.dk - VR Photography, Panoramic Photo, How To do :: 360 degree interactive VR photography. History and overview of how to do. pan around and look at it in different directions. The image should also change perspective so that http://www.panoramas.dk/quicktime/index.htmlHOME |
this.play();
this._xscale = 100
} else if (Key.isDown(Key.LEFT)) {
this._x -= 5;
this.play();
this._xscale = -100
}
}
My Guy normally shoots to the right, so the problem is when he turns to the left it looks like he's shooting out of his back. How can I make it so that when he turns to the left he shoots in that direction as well.
I already tried the below altered shooting script...no success
Apple - iPhone - Learn how to use all the features of iPhone.:: Find out how to use all the features of iPhone 3G and the new iPhone 3GS with these step-by-step instructions. http://www.apple.com/iphone/how-to/HOME |
onClipEvent (load) {
if(_root.mario._xscale =100) {
shellMoveSpeed = 10;
this._x = _root.mario._x+10;
this._y = _root.mario._y;
} else if (_root.mario._xscale = -100) {
shellMoveSpeed = - 10;
this._x = _root.mario._x-10;
this._y = _root.mario._y;
}
}
Dunno...any ideas on how to fix this???Thanks in advance :).
Don't know if its a type0 but....
onClipEvent (load) {
if(_root.mario._xscale == 100) {
shellMoveSpeed = 10;
this._x = _root.mario._x+10;
this._y = _root.mario._y;
} else if (_root.mario._xscale == -100) { How to Fool Rainy-Day Gobblers:: The birds are still active in bad weather and they can be fooled. Our expert explains how. all directions. Try to keep all of your shooting opportunities http://www.gameandfishmag.com/hunting/turkey-hunting/gf_aa036304a/HOME | Police Pistol Combat (PPC) Competition:: Introduction to Police Pistol Combat/Competition Shooting. After the line is safe, again by range officers command, you will change from your A to your B target. http://www.eohc.ca/ppc.aspHOME |
shellMoveSpeed = - 10;
this._x = _root.mario._x-10;
this._y = _root.mario._y;
}
}
== tests a variable
= asigns a veriable
the rest looks fine to me :D but then i don't have flash here at school
;)
does this code have to go in the character's action script window or the bullet's action script window?
Don't know if its a type0 but....
onClipEvent (load) {
if(_root.mario._xscale == 100) {
shellMoveSpeed = 10;
this._x = _root.mario._x+10;
this._y = _root.mario._y;
} else if (_root.mario._xscale == -100) {
shellMoveSpeed = - 10;
this._x = _root.mario._x-10;
this._y = _root.mario._y;
}
}
== tests a variable
= asigns a veriable
the rest looks fine to me :D but then i don't have flash here at school
;)
The bullets action panel (it would be kinda weird in mario's actions panel :P).
kanpai
Yeah it works! Thanks a lot :D!!!
Oh boy wow this thread is old! I can't believe it got churned up again :P!
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |