Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: manzarek on May 05, 2021, 08:59:01 AM

Title: (Personal style creation) How to get a spinning CD effect?
Post by: manzarek on May 05, 2021, 08:59:01 AM
Hi guys I am creating a personal style, but I am little expert with this language, in practice I would just like to know how to have a CD that runs, I just need this then I am satisfied with my work

Can some good soul pass me the code?
Title: Re: (Personal style creation) How to get a spinning CD effect?
Post by: hermine.potter on May 05, 2021, 01:37:29 PM
Have a look to this theme (http://forum.attractmode.org/index.php?topic=3535.0)
create a animated gif like this (https://bestanimations.com/media/discs/895872755cd-animated-gif-9.gif)

or
Have a look to this theme with png sequence (http://forum.attractmode.org/index.php?topic=568.0)

Title: Re: (Personal style creation) How to get a spinning CD effect?
Post by: manzarek on May 05, 2021, 02:04:40 PM
thanks, but I was trying to make sure that the cd, which runs and the one of the games, changes the cd with each game and it turns
Title: Re: (Personal style creation) How to get a spinning CD effect?
Post by: jedione on May 05, 2021, 02:23:15 PM
Q: witch CD base system is this for by chance?
Title: Re: (Personal style creation) How to get a spinning CD effect?
Post by: ReBirFh on May 05, 2021, 07:50:59 PM
Take a look at this http://forum.attractmode.org/index.php?topic=1270.0

by QQPLAYER

//////////////////////////////////////

// ANIMATION CDART PRESERVE ASPECT RATIO

//////////////////////////////////////

local cdart = fe.add_artwork("cdart", flx*0, fly*0.27 flw*0.19, flh*0.25);
cdart.preserve_aspect_ratio = true;

local cdart_rotation = {
    when = Transition.ToNewSelection ,property = "rotation", start = 0, end = 360, time = 3000, loop = true
 }

 //Animation
 
 animation.add( PropertyAnimation( cdart, cdart_rotation ) );
Title: Re: (Personal style creation) How to get a spinning CD effect?
Post by: manzarek on May 06, 2021, 03:43:14 AM
thanks friend.