COULD SOMEONE HELP ME WITH A KEYBOARD/ACTION PROBLEM?

  • kanaduh
  • Student
  • Student
  • User avatar
  • Posts: 86

Post 3+ Months Ago

i need some help doing this:
when user presses space bar
a bullet will come out of space ship
but the space ship can move with arrow keys


it's like one of those old fashioned games where your flying then you shoot down the bad guys before you get hit..i can make the space ship move and am working on a collision for the wall now i need this space bar technique


thanks if you can help
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

Code: [ Select ]
on(release, keyPress "<SPACE>") {
your action here
}
  1. on(release, keyPress "<SPACE>") {
  2. your action here
  3. }
  • kanaduh
  • Student
  • Student
  • User avatar
  • Posts: 86

Post 3+ Months Ago

but what would i use as the action??
i cant say:
shoot a bullet from super space ship
??
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

Reference the movieClip that is your little light beam that destroys other space shippy things.
  • kanaduh
  • Student
  • Student
  • User avatar
  • Posts: 86

Post 3+ Months Ago

so i should make a movie clip that is a little beam that moves up wards....and name it beam?
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

You could do something along those lines yes.
  • kanaduh
  • Student
  • Student
  • User avatar
  • Posts: 86

Post 3+ Months Ago

k i did that....so now i use the:
Code: [ Select ]
on(release, keyPress "<SPACE>") {
your action here
}
  1. on(release, keyPress "<SPACE>") {
  2. your action here
  3. }

but wut would the action be?
loadMovieclip Beam?

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 30 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.