The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:43 am

Forum rules


IMPORTANT

This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.



 [ 2 posts ] 
[Resolved] EnterFrame Placement 
Author Message

Joined: Wed Dec 24, 2008 7:21 am
Posts: 32
whats the code i put in for to make it enter frame

Code:
onClipEvent(enterFrame) {
  //Movement Horizontally
  if(Key.isDown(Key.RIGHT)) {
    _x += speed;
  } else if(Key.isDown(Key.LEFT)) {
    _x -= speed;
  }

  //Movement Vertically
  if(Key.isDown(Key.DOWN)) {
    _y += speed;
  } else if(Key.isDown(Key.UP)) {
    _y -= speed;
  }
}
   
   
where do i put the enter frame part ?

_________________
[URL="http://www.mubos-md.com/licensemaker/levelup.php?21466"]Image
Click here to level up my license![/URL]
Pssst wanna know whats going on in the sff2 devsection?
http://tinyurl.com/www-ssf2secrets-net
[URL="http://www.mubos-md.com/brawlcards/levelup.php?37098"]Image
Click here to level up my card![/URL]


Fri Dec 26, 2008 3:28 am
User avatar

Joined: Mon Aug 11, 2008 1:09 pm
Posts: 166
Location: England lol
Gender: Male
Currently Playing: Minecraft
Select a Movie Clip on the stage and open the Actions panel. This is where all onClipEvents are supposed to be written.

onEnterFrames belong on a keyframe just so you know.

And also, please read the rules - the title of the topic should contain a tag such as [Question]


Fri Dec 26, 2008 7:51 pm
WWW
Display posts from previous:  Sort by  
 [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.