[RMMV] ANIMATION ON MOUSE CLICK
Posts
Pages:
1
Help!
I'm trying to add an animation wherever you click whenever you click like in 'Kimi ga Shine/Your turn to die' also a RMMV game.
First I tried this:
-A common event with a conditional branch with a script:
If TouchInput.IsTriggered() -> Show animation on Player
This worked perfectly, but I had to put the mouse coordinates on an event since show animation only lets you use events or the player.
-An event on the map with Set Event Location (This event) Variables: TouchInput._x and TouchInput._y
This didn't worked at all, event disappeared of screen.
Tried the same with a picture moving around via Show Picture Variables: TouchInput._x and TouchInput._y and the animation played close to the image but too far away from the click and too slow after my click.
I also tried using the Set Move Route with Yanfly Move Route Core using Move to: TouchInput._x , TouchInput._y and also tried
this.teleportToPoint(TouchInput._x, TouchInput._y) These didn't do anything.
Any help/tips/plugins/corrections??? I'm lost I have no more ideas on how to do this
I'm trying to add an animation wherever you click whenever you click like in 'Kimi ga Shine/Your turn to die' also a RMMV game.
First I tried this:
-A common event with a conditional branch with a script:
If TouchInput.IsTriggered() -> Show animation on Player
This worked perfectly, but I had to put the mouse coordinates on an event since show animation only lets you use events or the player.
-An event on the map with Set Event Location (This event) Variables: TouchInput._x and TouchInput._y
This didn't worked at all, event disappeared of screen.
Tried the same with a picture moving around via Show Picture Variables: TouchInput._x and TouchInput._y and the animation played close to the image but too far away from the click and too slow after my click.
I also tried using the Set Move Route with Yanfly Move Route Core using Move to: TouchInput._x , TouchInput._y and also tried
this.teleportToPoint(TouchInput._x, TouchInput._y) These didn't do anything.
Any help/tips/plugins/corrections??? I'm lost I have no more ideas on how to do this
Tried the same with a picture moving around via Show Picture Variables: TouchInput._x and TouchInput._y and the animation played close to the image but too far away from the click and too slow after my click.
Try this again, but do the show picture much earlier with an off screen position.
Then use "move picture" when the click happens.
This will pre-load the image so that you don't get a lag in loading the image that happens with "show picture"
-An event on the map with Set Event Location (This event) Variables: TouchInput._x and TouchInput._y
Your issue here is mixing screen positions (which are in pixels, starting with 0,0 in the top left of the screen) with map positions (which are in tiles, starting with 0,0 at the top left of the map).
It's possible to convert between the two using the player's screen / map positions and some maths.
Pages:
1













