COULD SOMEONE HELP ME WITH A KEYBOARD/ACTION PROBLEM?

  • kanaduh
  • Student
  • Student
  • User avatar
  • Joined: Jun 25, 2005
  • Posts: 86
  • Status: Offline

Post June 27th, 2005, 9:13 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 27th, 2005, 9:13 pm

  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post June 28th, 2005, 1:24 am

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

Post June 28th, 2005, 10:38 am

but what would i use as the action??
i cant say:
shoot a bullet from super space ship
??
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post June 28th, 2005, 10:49 am

Reference the movieClip that is your little light beam that destroys other space shippy things.
  • kanaduh
  • Student
  • Student
  • User avatar
  • Joined: Jun 25, 2005
  • Posts: 86
  • Status: Offline

Post June 28th, 2005, 11:33 am

so i should make a movie clip that is a little beam that moves up wards....and name it beam?
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post June 28th, 2005, 11:34 am

You could do something along those lines yes.
  • kanaduh
  • Student
  • Student
  • User avatar
  • Joined: Jun 25, 2005
  • Posts: 86
  • Status: Offline

Post June 28th, 2005, 11:40 am

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 27 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.