Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Stray on June 03, 2013, 03:38:15 pm

Title: Picture Rotation Animation with Certain Angle
Post by: Stray on June 03, 2013, 03:38:15 pm
Is there a script for pictures, making them rotate in a certain angle?

I only found this script call:
$game_screen.pictures[picture number].angle = angle

It only is shows the pic. But i want it to rotate continuously to it's new angle.
Title: Re: Picture Rotation Animation with Certain Angle
Post by: Blizzard on June 03, 2013, 03:44:25 pm
You have to keep calling this code repeatedly and increasing the angle every time. You can use a variable for that, it makes things simpler.
Title: Re: Picture Rotation Animation with Certain Angle
Post by: Stray on June 03, 2013, 04:10:39 pm
Unfortunaltely I don't know how to put a variable in a script. :^_^':
Title: Re: Picture Rotation Animation with Certain Angle
Post by: Blizzard on June 03, 2013, 04:44:02 pm
$game_screen.pictures[picture number].angle = $game_variables[variable ID]

Title: Re: Picture Rotation Animation with Certain Angle
Post by: Stray on June 05, 2013, 04:07:57 pm
Is it possible to make a normal movement, too?
Title: Re: Picture Rotation Animation with Certain Angle
Post by: Blizzard on June 05, 2013, 05:59:24 pm
What exactly do you mean? Moving the picture around? Yes, it is.

$game_screen.pictures[picture number].x = $game_variables[variable 1 ID]
$game_screen.pictures[picture number].y = $game_variables[variable 2 ID]

Title: Re: Picture Rotation Animation with Certain Angle
Post by: Stray on June 19, 2013, 05:44:33 pm
Ok, that's good, too. But I meant something different:
The picture should move within a specific time from its actual angle to a new angle, released by a single script call. I don't want to animate it like this:
> Wait for 1 second
> Angle +1
> Wait for 1 second
> Angle +1
> Wait for...


I want it to be like:
> Rotate from actual angle to new angle within 10 seconds
Title: Re: Picture Rotation Animation with Certain Angle
Post by: KK20 on June 21, 2013, 12:48:13 am
It would require a Real (decimal number) to keep track of the increments. But it's basically


I guess you could also event it, although it won't be perfect, by doing