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:50 am



 [ 4 posts ] 
Image Flip in AS2 
Author Message

Joined: Sat Apr 16, 2011 7:39 pm
Posts: 1451
Location: Enjoying Life
Country: United States (us)
Gender: Male
Skype: sazhchocobo
Currently Playing: League of Legends, Killing Floor 2, Overwatch
Waifu: Cleod9
I need to make a movie clip flip when moving a different way. Is there such a code to do this?I don't want to have double sprites for everything.

_________________
Trying my best to better myself as a programmer! Please visit my programming blog, any and all tips are welcome!: https://conceptsexplained.wordpress.com


Sun Mar 11, 2012 1:49 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Probably, you'd know if you read the documentation.

_________________
Image


Sun Mar 11, 2012 2:40 pm
User avatar

Joined: Fri Jan 02, 2009 6:02 pm
Posts: 7283
Location: Australia
Country: Australia (au)
Gender: Male
MGN Username: Tid
Currently Playing: Deep™ The™ Game™
there's probably a better way to do it than this, but off the top of my head the fastest way to go about it would be something along the lines of
if (yourObjectsXSpeed < 1) {
yourObject.xScale = -1;

like i said in the other thread, this isn't the exact syntax or correct function names because it's been ages since I've used AS2, but that's essentially how you'd go about it.

_________________
ImageImageImageImage
Ask me anything!!!
Special thanks to Steven for my beautiful Deep avatar! <3


Sun Mar 11, 2012 3:32 pm
WWW

Joined: Wed Jan 16, 2013 3:29 am
Posts: 11
Gender: Anime Girl
I do not want to have a double sprite for everything. So, I need to know if there is a code that will help me make a movie clip flip while moving a different way.

_________________
abcd


Wed Jan 16, 2013 3:34 am
Display posts from previous:  Sort by  
 [ 4 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.