Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / I need a tool to flip between two images

Author
Message
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 3rd Sep 2011 13:40
I have to images (64x64) and I want to make an animation between them.
I want to flip from one to the other.

How do I do that?
Anyone know an online site that can do that or some smart tool (for Mac if possible)?

iOS Apps from Trisect Development.
Click here.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Sep 2011 21:12
That's just paste sprite, and sync. Not much to it really, all games do it in some way.

Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 3rd Sep 2011 21:39
What I'm looking for is a small program (Mac preferred) where I can load two images and then the program makes an animation for me, flipping from one image to the other.

Like turning a tile.

iOS Apps from Trisect Development.
Click here.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Sep 2011 21:47
Well write the program, it's only about 4 lines of code.

Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 4th Sep 2011 00:43
If it so easy and only 4 lines would you please show me those 4 lines of code?

iOS Apps from Trisect Development.
Click here.
Vitamin
13
Years of Service
User Offline
Joined: 15th Oct 2010
Location:
Posted: 4th Sep 2011 03:02
You could make 2 plane objects, place them against each other, and texture each one with the images you're talking about, and then rotate them.

Or, the other way is to make a sprite based off the first image, and then decrease the xSize of the sprite over time until it gets to 1; then, base the sprite off the 2nd image and increase the xSize over time until it's the normal size again, to achieve a "flipping" effect.
Grog Grueslayer
Valued Member
18
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 4th Sep 2011 23:33
Quote: "If it so easy and only 4 lines would you please show me those 4 lines of code?"


Didn't you ask this in the App Game Kit area? Pincho Paxton is right. Writing code for that doesn't take much. The following isn't 4 lines because it creates images, uses a timer, and has remarks so you know what's going on.



Or just use one of the animation programs that use the Mac and just do it that way rather than writing any lines of code.

http://download.cnet.com/mac/animation-software/

Quel
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 5th Sep 2011 09:42
...You are talking about morphing two images together in an animation right?

Which doesn't sound like 4 lines.

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Sep 2011 16:02
He only said flip, no mention of morph.

Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 5th Sep 2011 22:23
#Quel

I mean you se a tile and when you click on it it flips over and you se another image on the other side of the tile.

iOS Apps from Trisect Development.
Click here.

Login to post a reply

Server time is: 2024-04-19 06:56:54
Your offset time is: 2024-04-19 06:56:54