How do I rotate an object?

Status
Not open for further replies.

Raybrite

Lost Newbe
Veteran
Joined
Sep 1, 2013
Messages
108
Reaction score
10
First Language
English
Primarily Uses
 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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
then that is awesome... I wonder how he rotates those flat images correctly...
 

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
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.
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
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:

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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,700
Reaction score
1,901
First Language
Music
Primarily Uses
RMMV
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
You got your hopes up for nothing lol. Kinda obvious since sprites are, well, 2D. What's 2D stays 2D
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Raybrite

Lost Newbe
Veteran
Joined
Sep 1, 2013
Messages
108
Reaction score
10
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
You can use Paint.net which is free... each tile is 32x32
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

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.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top