Coin flip action (rotation 2d) [howto]

Im curently working on a technical type menu en i need to rotate a graphics (coin flip style) is there anyone that knows how to do this in a easy way :slight_smile:

Howdy…

Cheesey and easy way of rotating a circle vertically…

Draw a circle and make it a movieclip…
Name its instance on the stage to ‘Coin’…
Add this script and run it…

_level0.speed = 10;
_level0.onEnterFrame = function ()
{
	if (_level0.Coin._xscale <= 100)
	{
		_level0.Coin._xscale -= _level0.speed;
	}
	if (_level0.Coin._xscale < -100)
	{
		_level0.Coin._xscale = 100 - _level0.speed;
	}
}

i’ll try it… i made an little scrip myself, but thatone rotates en after 1 rotation it goes a few pixels to the right… so i get en long thick line that looks like a cion :frowning:

i’ll try it thx…

Hmm… :slight_smile: it works but this is not what im looking for :confused: i need something that looks more 360

speed = 10;
r2d = function () {
	this._xscale>=100 ? this.d=true : this._xscale<=-100 ? this.d=false : null;
	this.d ? this._xscale -= speed : this._xscale += speed;
}
coin.onEnterFrame = r2d;

something like that? :slight_smile:

you hit the nail right on its head :slight_smile:
thx… :slight_smile:
this is something i need :slight_smile:

:stuck_out_tongue:

anytime :wink: =)

I wanna see it working! :slight_smile:

Can someone post it working?

  • Soul :s:

i assume you don’t have flash installed so i’m attaching the swf as well :slight_smile:

I can’t view either fo those files :frowning:

lol

  • Soul :s:

… ??

hmm it looks much kewler in a cimatric image then A cimatric :frowning: …

the search goes on :slight_smile:

Thank you :beam:

hmm it looks much kewler in a cimatric image then A cimatric :frowning: …

… what? :stunned:

Thank you :beam:

ok … you saw it now i’ll remove the files :slight_smile:

with a image that have 2 sides the same it look keler then with a non 2 sides the same imags :frowning:

oh … now i get it :-\

all i can say is play around with the speed value and/or fps … honestly i doubt it’s going to make much difference though :frowning:

No problem man :slight_smile: i’ll fiddel around a little :slight_smile:

ok then … sorry i couldn’t help more though :-\

np in a way you did help me :slight_smile:

guess i did =) good luck with that :wink: