Picture Effect : Spin

Status
Not open for further replies.

Arisete™

Creator
Veteran
Joined
Jul 14, 2012
Messages
231
Reaction score
61
First Language
English
Primarily Uses
RMMV
I am wondering if someone can make me a small script that allows me to "Spin" a picture so that it could look like a Wheel, or Cogwheel spinning around.

The Rotate feature in Ace does not do this properly since it rotates around a big circle.

I tried Tsukihime's Picture Wrapper
But it's not compadible with Acezon's  Map Title Screen.
 
 
I would like the feature to spin like this.
 
 
Last edited by a moderator:

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
No script necessary. Well, except for a line or two, anyway.

First, set the 'Display Position' > 'Origin' of the picture to 'Center'. Next, change the X and Y values to reflect the change from 'Upper Left' to 'Center'. Then place the following in a 'Script' command, or wherever necessary :

Code:
# Remember to change 'x' for the picture id# Remember to change 's' to the desired rotation speedgmsp = $game_map.screen.pictures[x]gmsp.rotate(s)
The picture will rotate until you set the value to zero, or erase the picture.
 
Last edited by a moderator:

Arisete™

Creator
Veteran
Joined
Jul 14, 2012
Messages
231
Reaction score
61
First Language
English
Primarily Uses
RMMV
No script necessary. Well, except for a line or two, anyway.

First, set the 'Display Position' > 'Origin' of the picture to 'Center'. Next, change the X and Y values to reflect the change from 'Upper Left' to 'Center'. Then place the following in a 'Script' command, or wherever necessary :

# Remember to change 'x' for the picture id# Remember to change 's' to the desired rotation speedgmsp = $game_map.screen.pictures[x]gmsp.rotate(s)The picture will rotate until you set the value to zero, or erase the picture.
I don't get what you just explained with "origin" and stuff. o.0

- - Edit - -

I kind of got it figured out, but when I have the image moved to center, it's hard to figure out how to position it to where it's suppose to be.
 
Last edited by a moderator:

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
Ah, well, this is what I mean by 'Display Position' > 'Origin'


Now, shifting from 'Upper Left' to 'Center' means that the anchor point for the picture changes. So, the X and Y value will have to be changed to reflect that change, otherwise your picture will not be in the same spot as before.


EDIT : Perhaps this image will better convey what I am trying to say about changing the 'Display Position' :


As you can see, the X and Y values need to change when you shift to the 'Center' setting, otherwise the picture will not be in the desired location.
 
Last edited by a moderator:

Arisete™

Creator
Veteran
Joined
Jul 14, 2012
Messages
231
Reaction score
61
First Language
English
Primarily Uses
RMMV
I got this solved, This can be closed now.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top