I have the following player control script
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += 5;
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. OSP Shooting School, Shotgun and Shooting Tips:: sporting clays, shooting instruction, skeet shooting, trap shooting, shooting dvds, gun fitting, bird hunting, and shooting lessons. Learn to shoot today! http://www.ospschool.com/know12.htmlHOME | Remington Law Enforcement - Model 870 Police On-line Owners :: NOTE: See TO CHANGE THE CHOKE TUBE for instructions to change choke tubes. Repeated exposure to shooting noise can cause permanent hearing loss. http://www.remingtonle.com/support/prtsvc/870_om.htmlHOME |
I already tried the below altered shooting script...no success
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 :). WordPlop - Reviews, news, tutorials, gaming, web, gadgets :: This very simple tutorial will show you how to change the battery in Google will measure how long it takes for your website to load and compare it http://wordplop.com/HOME | Make your own biodiesel: Journey to Forever:: You dont need anyone to show you how, and you dont need to find However the process to chemically change the structure of Pure Plant Oil is a http://www.journeytoforever.org/biodiesel_make.htmlHOME |
Yeah it works! Thanks a lot :D!!!
Oh boy wow this thread is old! I can't believe it got churned up again :P!
Don't know if its a type0 but....
onClipEvent (load) { How To Reset Your Windows Password When You Have Forgotten It:: Instead, this tip will show you how to reset your Windows password in minutes. On my System, I need to change the password for the account WTN: http://www.watchingthenet.com/reset-windows-password-when-you-have-forgotten-it.htmlHOME | PC Support - How To Information | eHow.co.uk:: Best Ways to Improve Computer Performance,How to Change a Browser Title Bar,How to Configure your PC to Boot from a CD or DVD and much more! http://www.ehow.co.uk/articles_3384-pc-support.htmlHOME |
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
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
;)
does this code have to go in the character's action script window or the bullet's action script window?
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |