I want to make a Parabolic curve when sth dropped from the chest

1614398061422.png


I want to make this look like "the yellow heart drop FROM the chest"
but i don't know how to make an animation like this
I want a "Parabolic curve" that fly from the chest to the location

Does any godlike super developers know how to do this? thx!!
( I already know how to find a free tile to spawn the yellow heart, thx to "Eliaquim")
Maybe you could make a character sprite with a stepping animation that resembles the heart bouncing away from the chest???
Have you tried using the event command Set Movement Route -> Jump?
Thank you all but this is neither a solid animation curve nor jump
What I want is to make a "Parabolic curve" between the starting XY(which is the chest) to the spawned XY(which is the spawned location)

Since the spawned location can be anywhere around the chest, so the curve should be Dynamically generated between these two points!
I repeat my question - did you try a jump? It should start from the location of the chest, go upwards on the screen as it moves to the side, then back down as it goes to the target coordinates. That is the definition of a parabolic curve.

You can have a route made to whatever you want, four or five possible locations around the chest that the item will land, then use a simple random number generation to determine which it goes to.

If you have tried that and it in some way does not work for what you're trying to do, then we'll need you to explain the difference. Otherwise, that's the solution that's built in for you.
I repeat my question - did you try a jump? It should start from the location of the chest, go upwards on the screen as it moves to the side, then back down as it goes to the target coordinates. That is the definition of a parabolic curve.

You can have a route made to whatever you want, four or five possible locations around the chest that the item will land, then use a simple random number generation to determine which it goes to.

If you have tried that and it in some way does not work for what you're trying to do, then we'll need you to explain the difference. Otherwise, that's the solution that's built in for you.

1614401851732.png



I think i cannot use the jump because of the following reasons:
1, I cannot input the XY here, because i don't know the XY , the XY is stored in the var#3 and var#4(because I have to find the free tiles around Dynamically)
2, I cannot let the yellow heart(an new spawned event) to spawn on the chest and then jump to the target, because there is already an event in the chest tile

so maybe what i need is a script call??
like draw a jump from one place to a targeted place?
1, I cannot input the XY here, because i don't know the XY , the XY is stored in the var#3 and var#4(because I have to find the free tiles around Dynamically)

You can use a script call that does the same as the Jump event command.

2, I cannot let the yellow heart(an new spawned event) to spawn on the chest and then jump to the target, because there is already an event in the chest tile

You can use the Set Event Location to move one event onto the same tile as another event. As long as the heart events have THROUGH on, they will be able to jump away from the chest location.
1, I cannot input the XY here, because i don't know the XY , the XY is stored in the var#3 and var#4(because I have to find the free tiles around Dynamically)
The suggestion I gave you in my last post was to create several possible locations and randomly choose which one you go to. No variables would be involved. There is zero reason it needs to be actually random, the player can't possibly know the difference.

However, you can absolutely do what Shaz suggested and use a script call for the jump instead of the button in your event commands.
The suggestion I gave you in my last post was to create several possible locations and randomly choose which one you go to. No variables would be involved. There is zero reason it needs to be actually random, the player can't possibly know the difference.

However, you can absolutely do what Shaz suggested and use a script call for the jump instead of the button in your event commands.
oh ok i will ask shaz about the script calls, i am super bad at the script calls
thank you!
You can use a script call that does the same as the Jump event command.



You can use the Set Event Location to move one event onto the same tile as another event. As long as the heart events have THROUGH on, they will be able to jump away from the chest location.
hi Shaz! glad you are here!
can you tell me how to write the script calls?
I am super bad that doing the script calls

I want something like: Dojump(eventID, fromX, fromY, toX, toY)
thank you!!

EDIT: oh no , sth not right, i will not be able to know the eventID, because the events are newly spawned! god, i am doomed! shaz, please help!! i am so dumb!
OK to make myself understood, i will descripe my want-to-do:
1, player opens the chest
2, several yellow heart jumped out from the chest to around free tiles randomly
3, player steps on the yellow star and get some buff and other bonus

I want to create an animation to make the step#2 look realistic and catching
I don't know how to do this with jumping, because:
1, I don't know how to input XY to the jump location(because the XY is randomly generated and stored in Variable #3 and #4 during the open chest event)
2, I don't know how to do the script calls to make the jump
3, I don't know the newly spawned eventID(yellow heart) because they are newly Spawned

HELP!
Double-post notice: @RyanYe

If you want to quote multiple people, use the +Quote button in the lower right corner of their posts.

How are you spawning them?
event.jump(evX - varX, evY - varY)

?

you have to grab the event first for it to work, though.... so it'll probably be best to embed the move route in the spawned event itself, and have IT jump itself to position, rather than sending the order from the spawner.
Double-post notice: @RyanYe

If you want to quote multiple people, use the +Quote button in the lower right corner of their posts.

How are you spawning them?

ok sorry, i will not do double or even triple posting, lol

here is how i spawn them, i use Galv_eventSpawner, the script call is:
Galv.SPAWN.event(9,$gameVariables.value(3),$gameVariables.value(4));
(i don't know how to write "code" format in the forum, sorry i am dumb man)

the var#3 and var#4 holds the coordinates of the targeted location that i want to spawn(Randomly picked from free tiles around, you can see this post: here )

and the chest is the starting location from jumping

this is what i want!



============================================================
EIDT:
event.jump(evX - varX, evY - varY)

?

you have to grab the event first for it to work, though.... so it'll probably be best to embed the move route in the spawned event itself, and have IT jump itself to position, rather than sending the order from the spawner.

embed move route in the spawned event itself is another beautiful idea, but i don't know how to write or input the XY because the XY is stored on the Var#3 and Var#4

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-make-a-parabolic-curve-when-sth-dropped-from-the-chest.133879/