SourceTec Software

It is currently Thu Apr 24, 2014 10:37 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jul 11, 2010 6:17 am 
Offline
Member

Joined: Sat Jul 10, 2010 6:10 am
Posts: 4
I want to move an object back at forth but I can't seem to get it to work

killer.onEnterFrame = function () {
if (killer._x < 200) {
killer._x +=4;
};
if (killer._x > 200) {
killer._x -=4;
}
};

The object(killer) is meant to keep moving forward (+4) until its x value is 200 then its meant to go the other way but this doesn't work :(


Top
 Profile  
 
PostPosted: Mon Jul 12, 2010 6:25 am 
Offline
Member

Joined: Sat Jul 10, 2010 6:10 am
Posts: 4
Nope doesn't work, I think the code is wrong :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 6 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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group