Joined: Sat Apr 16, 2011 7:39 pm Posts: 1451 Location: Enjoying Life Country: 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
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country: Gender: Male
Skype: Thaiberium
Currently Playing: 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.
_________________ Ask me anything!!! Special thanks to Steven for my beautiful Deep avatar! <3
Sun Mar 11, 2012 3:32 pm
standaltrey123
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.
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