# Trajectory Mini Game Help Needed

#### aiming2high

##### Veteran
Hey does any one know a way to make a tank type of mini game like "scorched earth"? One where you set the angle and velocity and then shoot at a target. I think I am going to use it to knock something out of a tree like a set of keys for a door. I am making a horror puzzle mystery and need puzzle tutorials. I am pretty new at this.

#### Fornoreason1000

##### Black Sheep
you want to make an artillery style mini-game?

RPGmaker MV doesn't have any of that kind of logic or programming.

it really depends on how far you want to go with this, without a plugin of sorts you could make an event where you set numbers (Number Input) to dictate angle and velocity,
however Events can only move by tiles (48x48 pixels). so whatever your throwing / shooting will also have that limitation.
this makes it difficult to even show the player what the shot is like. since a tile is equivalent to like 2 meters unless you make the map large enough to accommodate such a game.

Now artillery games usually make their rounds or bullets follow a parabolic trajectory basically to simulate gravity. I have no idea how you would do this in events alone. my only guess is to use a picture and have that move along a calculated line. remember though Pictures uses Screen Coordinates, which makes it a nightmare if you have to scroll the map in this game.

I guess the main question is how and where do you want this minigame to function.
to break it down.

-Is it in the Map using Events or another Scene?

-Does this Object travel in a straight line, parabolic or something else? will it even be visible?

-How do you want to the player to set the velocity and angle? remember number inputs only limit the digits not the nubmers themselfves e.g 99 Degrees you're shooting backwards.

-What do you want it to look like. the object, the player throwing it, animations? an explosion should it land (maybe they're throwing bombs?)

-How do you want check if the player hits, is it a velocity and angle range check or do you need the object if visible to actually collide with the target?

#### aiming2high

##### Veteran
Wow great information. Thank you! Here is the video that gave me the idea. I remember how fun it was to take turns shooting tanks at each other in "Scorched Earth" back in the day.

#### Fornoreason1000

##### Black Sheep
Exactly like that?

that one would probably need a plugin of sorts. the gagues aren't part of MV or anything.

Take note how the characters are orientated here. they're basically side view characters.
in RPGmakerMV the characters on "Maps" are orientated in "top-Down". this more or less makes them unsuitable without making it look awkward.

however in "Battles" the battlers (your characters) are orientated in side view, they are way better suited for this, heck they even have a bow and arrow animation.

if i were doing this Id swap scenes to a custom scene where this mini game takes place.
if your serious enough you could make it seem like the cameras changing position by drawing the scene so it look like the map you just were but with a side view like the video.

#### ct_bolt

##### Creator
Hey does any one know a way to make a tank type of mini game? One where you set the angle and velocity and then shoot at a target.
that one would probably need a plugin of sorts.
Yep definitely needs a brand new plugin.

This one has quite peaked my interest so I've decided to attempt the challenge.

I'm actually trying to retain full compatibility and allow events to be "gravity" enabled and use such parameters like force, mass, angle, etc.

Gotta say it's been quite a difficult one so far but it's getting there.

Plugin WIP can be viewed on my itch.io page

Very early stage still though, don't expect much yet lol
I'd say it's like v0.09 lmao but it's a good first step for sure

Last edited:

#### aiming2high

##### Veteran
Some very helpful folks on this forum. I appreciate it very much!

#### ct_bolt

##### Creator
Some very helpful folks on this forum. I appreciate it very much!
No prob. It's a fun challenge.
Honestly much more difficult then I would have thought originally too though lol
Almost ready to have beta release...
No plugin file to download yet but, playable demo on the itch.io page

### Latest Profile Posts

I've been working furiously on a small demo slice. But with King Slime so busy assets have been slow to form. No matter! I've got the demo for rpgmaker MZ and I'm using the 20 days to make a short and sweet demo game of fighting alongside your rival/boyfriend hehe Kind of like a mini challenge to myself
Yes my images are back ^^, hopefully they won't disappear again.
It's Sunday. Stop working and take a break. Relax a little.
Ooops ended up trying out making my own A2 tile page instead of testing doors everywhere. Went well so far I think.
I guess I'm done making a blue squirrel's life difficult for posting new threads on different forums.
That's just for today so don't get used to this, squirrel-ish friend!