Image bug or maybe I am doing somethign wrong...

Ok... This is my first time asking for help. I normally try to figure things out on my own, and I have done some searching but haven't found anything addressing this issue. I am not sure if I have done something wrong or what is going on, but alas, here goes.

I am using the 4 coloured orbs from the !Other1 page. Player will access the orb via event, and is presented with an option to transfer somewhere. The issue I am having is that when the green orb is accessed, it turns red, and when the player is done accessing it, the orb goes green again. The same issue goes for the blue orb, which turns purple when accessed. The red and purple orbs do not change colour.

The events script does nothing to change the colour of the orbs and this is happening when the animation is both stepping or static.

I have attached 3 pictures... the first is the player at the orb, the second is when the player actions the orb (as you can see it turns red) and the 3rd is the event script on the orb.

I have tried deleting and re-adding the script and the image etc. Not sure what else to do at this point.

Any help is appreciated.

Thanks in advance.

greenorb.png

nosogreenorb.png

script.png
You need to use direction fix to keep the orb from turning, but you need to deactivate it when you want it to turn (on player interaction) and activate it afterwards again.


By the way: event's aren't scripts - those are something entirely different (in the script editor) and you better learn not to reference events by "script", because that will only cause confusion.
Ok I will give this a shot right now.

I will also attempt to get the lingo correct :S

I'll update this response with results!

Thanks 🙂

EDIT - It worked. Something so simple as direction fix >.<  Thanks for your help Andar, greatly appreciated!
Here's why ...


take a look at a character sheet for a regular NPC type character. You'll see each character has 4 rows of sprites - one facing each direction. When you use those, and you interact with a character, they will turn to face you.


The "object" character sheets are in the same format and have the same behaviour - they just don't dedicate 4 rows all to the same sprite with different facing directions. But Ace doesn't know it's an "object" and not a "person", so it still does the same thing - turns towards you. And chooses the sprite from the correct row based on the direction it now thinks it's facing.


Checking the Direction Fix box tells it that you don't want it to turn torwards you when you interact with it 🙂
Here's why ...

take a look at a character sheet for a regular NPC type character. You'll see each character has 4 rows of sprites - one facing each direction. When you use those, and you interact with a character, they will turn to face you.

The "object" character sheets are in the same format and have the same behaviour - they just don't dedicate 4 rows all to the same sprite with different facing directions. But Ace doesn't know it's an "object" and not a "person", so it still does the same thing - turns towards you. And chooses the sprite from the correct row based on the direction it now thinks it's facing.

Checking the Direction Fix box tells it that you don't want it to turn torwards you when you interact with it 🙂
That makes a lot of sense. I appreciate the explanation. I am now discovering that I would like to do a similar thing with some characters. Basically the main character actions an item and the event calls for a follower to appear. When the follower appears, I would like to have the main character turn towards the follower. That being said, I used moveroute to have the main character face down towards the follower that appears behind her but if you action the item from a different angle she will turn and face down even though the follower appears beside her. Not sure how complicated this might be to find out what direction the character is already facing vs what direction the appearing follower is facing etc. *scratches head*
Is the follower always going to be directly behind the main PC? In that case, you could use the Turn 180 move route command.


If the follower could be standing beside the main PC but will always be facing the main PC, do this:

Code:
Set Move Route (Player): Script: set_direction(10 - $game_player.followers[0].direction)
This gets the direction of the first follower (who should be facing towards the main PC) and then makes the PC face the opposite direction, which results in the PC facing the first follower.
Is the follower always going to be directly behind the main PC? In that case, you could use the Turn 180 move route command.

If the follower could be standing beside the main PC but will always be facing the main PC, do this:

Set Move Route (Player): Script: set_direction(10 - $game_player.followers[0].direction)This gets the direction of the first follower (who should be facing towards the main PC) and then makes the PC face the opposite direction, which results in the PC facing the first follower.
Hmmm I like that way that looks. I'm gonna try it out and see if it does what I want it to do. If not, then I will just adjust the game event to move the character before the player can input movement thus leaving only one option available for directions in which the player can turn.

Edit:

Ok that bit of script works perfectly for the player turning towards the follower. Now, sometimes when the follower appears, he is facing down and the player is facing up, so they are already at opposites. How would I adjust that to make the follower get the direction of the player and turn towards them first and then have the event continue so that they are eventually facing each other no matter what position they originally started in?
In a Script event command:

$game_player.followers[0].turn_toward_playerThis one needs to be in a Script event command, as Set Move Route does not allow you to choose followers as the subject.And if you just wanted to whack it all into a single command, do this in a Script call:

$game_player.followers[0].turn_toward_player$game_player.turn_toward_character($game_player.followers[0])The turn_toward_character is a method of Game_Character, but there isn't a corresponding command in the Set Move Route dialogue.
OMFG THANK YOU SHAZ <3<3<3 It all works exactly as I wanted.

I am getting pretty good at the events and such, but scripts are a bit daunting to me, so I don't mess with them as much yet. As I learn, I am sure I will become more comfortable. I was reading through the script stuff thats pinned to the top of the forum and couldn't figure it out >.< However, I did manage to learn something relating to the same event but not involving players and followers looking at each other xD

Thanks for your help! 😀

Original thread: https://forums.rpgmakerweb.com/threads/image-bug-or-maybe-i-am-doing-somethign-wrong.45759/