[Behavior] flip Sprite

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply Page  123>
Author
5,295 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Topic: [Behavior] flip Sprite
    Posted: 18 Apr 2012 at 7:10pm
Here's a behavior which allows you to flip a Sprite on his side (it was sitting on my harddrive, nearly finished, I just needed to test it on Chrome...) !

To make it work, you need to have a Sprite with two frames, when the first frame is flipped, the second one appears behind it.

4 consecutives screenshots to show the effet (it's more pronounced in Firefox than Chrome, I need to check the perspective).

It's also working on iOS (I just tested it on an iPad 1st gen with iOS 5.1).

In the next release, you'll have the possibility to se the perspective, axis (left/right,up/down), and back color.
I also need to make it work in Opera...

The demo : http://dl.dropbox.com/u/1412774/C2FlipTest/index.html
The .capx : http://dl.dropbox.com/u/1412774/C2FlipTest/C2FlipTest.capx
The plugin : http://dl.dropbox.com/u/1412774/C2FlipTest/pode_flippy.0.1.zip

One cool thing is that I can leverage the method to add other CSS2/CSS3 effects to objects in C2. So in the next few weeks, you are going to see some new effects !
Back to Top
5,295 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 18 Apr 2012 at 7:11pm
And, remember people, it's a behavior, not a plugin, so straight to the /behavior folder !
Back to Top
16,360 Rep
Post Options Post Options   Quote newt Quote  Post ReplyReply Direct Link To This Post Posted: 18 Apr 2012 at 7:18pm
Nice. Would be good for card games, perhaps even a paper mario effect.

Thanks!
Back to Top
3,990 Rep
Post Options Post Options   Quote pedro.thiers Quote  Post ReplyReply Direct Link To This Post Posted: 18 Apr 2012 at 7:40pm
it's nice to see that the sprite jumps out from the canvas! If planned right, it can be a good surprise =]

nice job, Pode.
Back to Top
4,893 Rep
Post Options Post Options   Quote TL22 Quote  Post ReplyReply Direct Link To This Post Posted: 18 Apr 2012 at 10:04pm
This is so cool. Don't know what I'd use it for but I don't care! Downloading!
Back to Top
6,429 Rep
Post Options Post Options   Quote gonzdevour Quote  Post ReplyReply Direct Link To This Post Posted: 19 Apr 2012 at 9:07am
That's amazing! m(_     _)m
Back to Top
10,250 Rep
Post Options Post Options   Quote rexrainbow Quote  Post ReplyReply Direct Link To This Post Posted: 19 Apr 2012 at 9:15am
Master of effect!
Back to Top
5,655 Rep
Post Options Post Options   Quote VampyricalCurse Quote  Post ReplyReply Direct Link To This Post Posted: 19 Apr 2012 at 9:52am
Menu effect material. Thanks for this. :)
Back to Top
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Posted: 19 Apr 2012 at 10:10am
Hmm this could be used for a nice pageturn effect if used right :O
Back to Top
9,136 Rep
Post Options Post Options   Quote edisone Quote  Post ReplyReply Direct Link To This Post Posted: 19 Apr 2012 at 12:26pm
amazing!!!!!i like it
Commodore 64 + Datassette 1530
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down