Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help moving sprite

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
im trying to get a sprite to move left and right, up and down using the keyboard. right now im using a script

on keydown
if keypressed(123) then sprite(5).loch = sprite(5).loch -5
if keypressed(124) then sprite(5).loch = sprite(5).loch +5
end if

This works fine for moving the sprite left and right, what do i need to do to get this thing moving up and down?
 
same thing just for locv

if keypressed(x) then sprite(5).locv = sprite(5).locV -5
 
How to increase the number of sprites (layers in Flash) from the default maximum of 150 to more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top