How do I rotate an object?

 Sorry for being such a newbee but I am trying to figure out how to rotate a chair or table.

 They appear in the object to place in a map but they only face in one direction.

 I know there is probably a key shortcut to do this but I need them to face sideways if possible to place along a wall or at a table in the map.

Thank you for being so patient with me. I am new at this.

Ken

Rotate.png
You cannot do it in the editor because the tilesets are flat pictures already...

You need to edit the tileset in an image editor and add a rotated version... though you would probably need to create the new chair by yourself since you cannot really do a 3D rotation to the flat chair...
There's a script for setting player/event/vehicle/followers to angle degrees, so you can make the chair and table as events and use this.

It's called New Character Properties with Calls 2.2 by PK8.  Give it a try.
Though they require the spritesheets, which the chairs doesn't have right?

This script adds additional properties from the Sprite class to Game_Character such as angle, color, mirror, tone, zoom_x, and zoom_y. For this version, I also combined my Event Angle/Color/Mirror/Tone/Zoom add-ons and my script calls with this script.
Though they require the sprite to have the facing, which the chairs doesn't have right?
Nope, it can be tile sprites too as long as it's an event that uses that Tile sprite.  I just tried it with a 90 degrees staircase from B.
then that is awesome... I wonder how he rotates those flat images correctly...
Wouldn't rotating the chair make it look like it has fallen over or is upside-down?  You would need to draw new tiles so that you can see the side or back of the chair.
then that is awesome... I wonder how he rotates those flat images correctly...
Script-call wise it's $game_map.events[id].angle = value

Code-wise it's:

Spoiler
Code:
  #--------------------------------------------------------------------------  # * Angle Change  #     angle     : Picture angle  #     duration  : Frame amount.  #     relative  : References current value and adds to it, if true.  #--------------------------------------------------------------------------  def angle_change(angle, duration, relative = false)    @angle_target = (relative == true ? @angle + angle : angle)    @angle_duration = duration    @angle = @angle_target.clone if @angle_duration == 0  end
Code:
  #--------------------------------------------------------------------------  # * Frame Update  #--------------------------------------------------------------------------  def update    pk8_ncp_update    if @angle_duration >= 1         # Angle      d = @angle_duration      @angle = (@angle * (d - 1) + @angle_target) / d      @angle_duration -= 1    end
I meant, how it was actually done by the system for 2D things...

PS: do you have sceenies? I cannot test it out right now and I'm seriously curious to how the rotated tiles look...

Wouldn't rotating the chair make it look like it has fallen over or is upside-down?  You would need to draw new tiles so that you can see the side or back of the chair.

 
I was thinking about that too, which is why I'm curious to see it in action...
I would assume the rotation of the tile in question would be as if you were to rotate a normal image at an angle.  It would look, as Espon said, like it has fallen over based on the overhead perspective of the makers.

Best bet is to have a sprite created for the chair so you have access to it being in the 4 different directions.
Yeah,  that was what I think too... Which is why I told him that he might need to draw the new chair by himself right at my first reply...

because seriously, even in Photoshop, you cannot do a perfect 3D rotation to a 2D image...
PS: do you have sceenies? I cannot test it out right now and I'm seriously curious to how the rotated tiles look...
using 90 degrees

angle.png
so yeah, it just rotates it on the 2D plane... which won't really look good... that stair alone looks quite bad... rotating it correctly should have resulted to the dark parts on the sides being hidden, while having a darker side in the down part since we look at it top-down...

translating that to the chair, it will look like the chair is knocked down...
You got your hopes up for nothing lol. Kinda obvious since sprites are, well, 2D. What's 2D stays 2D
Well, because I was thinking that you won't link up a resource that clearly won't produce the desired effect... specially after I already said that he might need a total redraw of sprites... XD

so yeah, in the end we come back to the original option: you need to draw the side-view sprites into the tileset by yourself using some image editing program
By "rotate" he doesn't really mean "rotate". He means a different version of the sprite, viewed from a different angle.


And the answer is the first one given. You can't "rotate" or "turn around" a 2D sprite. You have to draw it by yourself, or find someone who's already drawn it.
I guess I will have to find a good program fo make a sprite and then make sure it is a good size to match the table. Then I can import it and use it that way.

I will get this thing figured out yet.

What is a good program to make sprites that is now too expensive?

Ken
You can use Paint.net which is free... each tile is 32x32
Paint.NET and GIMP are both popular and free. You need to use something that supports transparency, will let you save in .png format, and preferably something that supports layers (it's much easier to edit sprites in layers, even though you'll be merging them before the final save).


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.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-rotate-an-object.17824/