Any way to make character spinning while moving.

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
Is there a way to make a player spin while they are moving in certain direction? Like a full 360 spin every square
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,300
Reaction score
8,367
First Language
German
Primarily Uses
RMMV
depends on what exactly you want to do.

In a cutscene you can give turn orders interspersed with move orders and turn on/off direction fix to simulate that.

If the player is supposed to have any control while spinning, it becomes much more complex to do.

And if by "spin" you mean including top-down instead of just around (looking left/right), then that needs a different sprite from an image program.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,699
Reaction score
2,800
First Language
English
Primarily Uses
RMMZ
Would something like this do it for you?1622495210473.png
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
If the player is supposed to have any control while spinning, it becomes much more complex to do.
I'm looking for solution to this problem.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,300
Reaction score
8,367
First Language
German
Primarily Uses
RMMV
then we need more details on what kind of movement you want, especially if the solution mentioned by trihan above doesn't work for you - because then it will have to be custom-fitted to your case.
 

Neareyn

Villager
Member
Joined
Apr 21, 2021
Messages
19
Reaction score
3
First Language
German
Primarily Uses
RMMZ
I think the person wants it to be like a spinning top.
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
then we need more details on what kind of movement you want, especially if the solution mentioned by trihan above doesn't work for you - because then it will have to be custom-fitted to your case.
It doesn't work for me. I'm looking for something that would made character spin constantly, but the player would still be able to move as usual without interrupting spin whatsoever.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,699
Reaction score
2,800
First Language
English
Primarily Uses
RMMZ
Ah, that isn't at all what you said. You said "spin if they are moving a certain direction" not "spin constantly while being able to move". Give me a sec.

It'll work if you take out the conditional branch, but there's a pause each tile for the spin. Will that do?
 

Silenity

Veteran
Veteran
Joined
Dec 17, 2013
Messages
707
Reaction score
298
First Language
English
Primarily Uses
RMMZ
Like the floor puzzles in pokemon? Where you hit the arrow tile and spin until you collide? or freely move while spinning?
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
Like the floor puzzles in pokemon? Where you hit the arrow tile and spin until you collide? or freely move while spinning?
Freely move while spinning.
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
Ok, I did it with a brute force method, but if someone has a better solution then please share.
1622502255053.png
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,699
Reaction score
2,800
First Language
English
Primarily Uses
RMMZ
Ok, I did it with a brute force method, but if someone has a better solution then please share.
View attachment 190953
That is the Javascript version of what I did with the move route command; neither is necessarily better than the other, but with the event command you can put your direction facings and waits into one box rather than needing multiple script commands. It's up to you, though.
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
That is the Javascript version of what I did with the move route command; neither is necessarily better than the other, but with the event command you can put your direction facings and waits into one box rather than needing multiple script commands. It's up to you, though.
Not necessarily, your version disallows movement. And player won't be able to move until move event finishes. While the thing I did works independently and won't interfere with player movement.
 

Neareyn

Villager
Member
Joined
Apr 21, 2021
Messages
19
Reaction score
3
First Language
German
Primarily Uses
RMMZ
Just had a random thought... What if instead of changing the direction, you change the image of the character all the time?
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
Just had a random thought... What if instead of changing the direction, you change the image of the character all the time?
I think It could work, though you'd have to set it up for every character separately.
 

Htlaets

Veteran
Veteran
Joined
Feb 1, 2017
Messages
243
Reaction score
121
First Language
English
Primarily Uses
I feel like the most brute force way to do this without using scripts or plugins or tons of unique spritesheets is to have four overlapping sprites, three of which are transparent at any given moment, all of them have their direction fixed, have a parallel event constantly changing the transparency of all the sprites so it looks like the player is turning and make sure all the sprites are in the same location at all times (relatively easy if you make the player sprite transparent throughout the spinning and have the "turning" events always move toward player). Making all the sprites have a stepping motion active might add to the effect.

This could be made easier by the variety of plugins that make events look like actors. If not that, you could simply create the events in such a way that a variable gets set before it starts and have the event pages set up so that the variable sets which sprite matches the player character.
 
Last edited:

Marquise*

Veteran
Veteran
Joined
Jul 9, 2014
Messages
5,071
Reaction score
8,343
First Language
French-Canadian
Just my way of using photoshop to fix everything here, if you want to use no code, but have a fancy for graphics, one solution would be to switch the sprite positions in the spritesheet and then use that one each time the condition is required.
 

Latest Threads

Latest Posts

Latest Profile Posts

PSA: please stop putting the word 'Eternal' in your game titles.
RMMZ: "Simple enough for a child!"
also RMMZ: "What, you're trying to make an RPG and you didn't know about Euler angles?"
I kinda spent the day having my own little gamejam and came up with this Catastrophe!

GZOq45s.png
Have Defeated Enemy Join Party as Actor, Show Passage Status, & MZ-Chan Art | RPG Maker News #107

My outfit at Metrocon. It was fun.

Forum statistics

Threads
113,625
Messages
1,076,286
Members
147,638
Latest member
Zachimera
Top