Solved missile targeting system

Question that is answered or resolved.

DD Tokki

Well-known member
MYMOD - 0001.png

You are playing Contra for various attacks from players and enemies.
There seems to be a system where enemies aim at players in this piece.
Missiles are fired at the player's location, which seems to be different than Chase.
I want to apply an aiming system to the Megaman I am making.
 
IIRC there's no targetting mechanic in the position of that screenshot. I happen to place the rapid shooting at position where player might be :devilish:

Back to topic, there are 3 targetting mechanic/type I've coded for my games, both 2.5D and 2D.
1. Direct
Here, entity is aimed toward opponent (for charging/dashing attack) or projectile is aimed (for shooting). This one is commonly seen in multiple games.
2. Arched
As name implies, entity/projectile is aimed to move in an arch and land on opponent. Commonly used by grenade tossers (ex: Contra and Metal Slug)
3. Teletarget
If you ever see enemies/bosses disappear then teleport above your head, that's example of this. Alternatively, enemies/bosses spawn projectile either above your head or right on your feet.

These mechanic could be expanded to create other mechanic such as chase or sniping.

I believe all of above types have been used by robot masters, well not all of them obviously.
The question is which of three types above you need?
 
IIRC there's no targetting mechanic in the position of that screenshot. I happen to place the rapid shooting at position where player might be :devilish:

Back to topic, there are 3 targetting mechanic/type I've coded for my games, both 2.5D and 2D.
1. Direct
Here, entity is aimed toward opponent (for charging/dashing attack) or projectile is aimed (for shooting). This one is commonly seen in multiple games.
2. Arched
As name implies, entity/projectile is aimed to move in an arch and land on opponent. Commonly used by grenade tossers (ex: Contra and Metal Slug)
3. Teletarget
If you ever see enemies/bosses disappear then teleport above your head, that's example of this. Alternatively, enemies/bosses spawn projectile either above your head or right on your feet.

These mechanic could be expanded to create other mechanic such as chase or sniping.

I believe all of above types have been used by robot masters, well not all of them obviously.
The question is which of three types above you need?
I'll show you what I want at home later. Just like in a shooting game, the enemy attacks the player accurately.
 
IIRC there's no targetting mechanic in the position of that screenshot. I happen to place the rapid shooting at position where player might be :devilish:

Back to topic, there are 3 targetting mechanic/type I've coded for my games, both 2.5D and 2D.
1. Direct
Here, entity is aimed toward opponent (for charging/dashing attack) or projectile is aimed (for shooting). This one is commonly seen in multiple games.
2. Arched
As name implies, entity/projectile is aimed to move in an arch and land on opponent. Commonly used by grenade tossers (ex: Contra and Metal Slug)
3. Teletarget
If you ever see enemies/bosses disappear then teleport above your head, that's example of this. Alternatively, enemies/bosses spawn projectile either above your head or right on your feet.

These mechanic could be expanded to create other mechanic such as chase or sniping.

I believe all of above types have been used by robot masters, well not all of them obviously.
The question is which of three types above you need?
MYMOD - 0002.png
MYMOD - 0003.png

In fact, I want to show it as a video, but I will show it as a screenshot as soon as possible. The sniper's muzzle has an angle limit, but the bullet goes exactly where the player is. I want to use this feature.
 
Back
Top Bottom