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
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
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?
yes. Help is important, but I tried to apply the script myself because I was wondering if I could do it myself.Great! did you use targetting script from Contra module?