S
Scared Sacred
Guest
This is probably really easy but i cant seem to get it right (i'm using drag and drop). what i'm trying to do is make my object change into the other objects depending on where the mouse is. I have 4 objects i want to use. I almost have it down it changes to the back, left, and front version of the object but not to the one facing right.
I started out using a step event and having my characters movement, after that i have a declare temp. and i put dir for the name and point_direction(x, y, mouse_x, mouse_y) under value. After that is an if variable dir is greater than 45 , and then another if variable is less than or equal to 135 it will change instance to my object which faces the back. After that i have an else statement which is the same as above but it changes the angles and the object to face the correct way. When i put the object in the room and test it the character changes to only the back left and front model and i don't know whats wrong.
Sorry if this is a dumb request, but i'm new to this and don't know exactly what i'm doing. I would really appreciate some help here. I have attached a screenshot of what I have so far.
I started out using a step event and having my characters movement, after that i have a declare temp. and i put dir for the name and point_direction(x, y, mouse_x, mouse_y) under value. After that is an if variable dir is greater than 45 , and then another if variable is less than or equal to 135 it will change instance to my object which faces the back. After that i have an else statement which is the same as above but it changes the angles and the object to face the correct way. When i put the object in the room and test it the character changes to only the back left and front model and i don't know whats wrong.
Sorry if this is a dumb request, but i'm new to this and don't know exactly what i'm doing. I would really appreciate some help here. I have attached a screenshot of what I have so far.
Attachments
-
397.1 KB Views: 20
Last edited by a moderator: