Adrián Mato 🐙

@adrianmg
4 Followers
135 Following
269 Posts
Designing developer tools at GitHub

Ask me about Galician octopus · 🇪🇸 → 🇬🇧 → 🇺🇸 →❓
Websitehttps://adrianmato.com
Wallpapershttps://adrianmato.art
github-pewpewhttps://adrianmato.com/pewpew

Same idea but aiming for the average point between all targets. I haven't used this since Math at school 🤪

Average is calculated similarly to regular numbers: add all vectors and divide by the total number of points.

The turret can now shoot at multiple targets at once
Implemented a small queue o handle multiple targets. Turrets won't shoot unless there's a target at range and will prioritize the first identified target 🎯
#godotengine #gamedev
I couldn't get the right angle to rotate a turret toward a target until I realized this 😂

Using collision detection to target enemies. Turrets rotate and aim the latest target via an `angle lerp()` between two points 🔫

I also learned how to expose custom properties for different instances of the same object. Turrets shoot and aim at different speeds ✨

#godotengine #gamedev

Careful: dumb turret ahead! Pew pew
#godotengine #gamedev
Mixing up collision detection and pre-made animations 💎✨
#godotengine #gamedev
💨🚀💥
⏱️

I used this to play an animation I previously created, so the whole thing interacts with the physics engine. 🪄

#godotengine #gamedev