So I wanted to know how to fire pseudo projectiles on a pseudo gadget.
One thing I have learnt from my preliminary testing was that in topdown, on mobile or on laptop (maybe as I am a mobile user) wherever you tap the player moves in the specific direction.
Now I have thought that if we detected the movement and put it into an equation, we could make a property that stores a list of coordinates that if another players pseudo hitbox coordinates are in the list of the hitbox, we use a damager to damage the player.
Usages:
I can be used to fo all sorts of projectile manipulation such as reversing the attack or homing projectiles.
Also hit detection! Yay!
Example
So when the player moves right 1 tile it their coordinates would be 1,1 then 2,1. So now, using this we can use that to find that the angle would be 90 degrees. So using block code, we make a property list of the coordinates by getting the degree and adding a new line of property for where it has traveled.
So if we use a get text code block, we can use the property to check whether if the enemy or player was hit. If hit, we can send a channel to the damager and damage the enemy.
For people without knowledge of coordinates, It is X first then Y so 1,2 would be 1 tile to the right and two tiles up.
What I can’t work out.
How to make it have flight delay:
Flight delay is just like not just making a list in a tick, but making the list of coordinates over time to make sure the enemy has to actually move. I thought about integrating trigger loops that refresh at the speed of the projectile and making it add a line of coordinates each time it refreshes.
How to get make it visible:
This is to create an effect of where the projectile actually is. So it wouldn’t look like random damage.
How to detect if there is a wall and stop the projectile.
I am a new forums user so inform me of anything I did wrong. Thanks
I mean one that detects whether the targeted player is in a zone, then damages according to the player’s position, while firing a laser in the process.
getting back to that turret idea; What if there are triggers surrounding the “turret”, when someone steps on one it activates a specific set of lasers to oof the player.
The reason I’m not using zones is to give the impression of firing a gadget.
1.you can use coord to detect other players, just let them also transmit a channel and connect to a non global property
2. There is a guide on just detecting distance using coord, you dont have to store list of coord
no, I meant that the triggers could help determine where the player is, although there is probably a more memory-efficient way to do that, but I’m horrible with gimkit mechanics so idk how :\