Update 6 - Enemy/Bullet Penetration
NOT in game yet but first test was successful: There will be an upgrade, that bullets can pass through enemies (but apply damage) a certain amount of times (based on upgrade level).
Bullet and enemy are rigid bodies and usually a penetration like this is not possible. Either they collide or they don't, but in the latter case no damage would be applied and you'd also not even get a notification, that a collision happened.
Solution: RigidBody-Collision is disabled at the beginning and an Area2D node (godot specific) checks for overlaps with other objects. Every time I overlap with something, I create a clone of the bullet with 0.1s lifetime and enabled rigid body collision: This will "officially" hit the enemy while the original bullets continues flying until I enable its rigid body collision as well (which will happen after x times of penetrating an enemies).
Interesting side-effect (which i like): penetrated objects are NOT pushed around. This can create interesting gameplay because pushing stuff around can help to avoid collision (as you push it away from you).
Get Cozy Space Survivors
Cozy Space Survivors
Cute Space Shooter with Auto-Firing like in Vampire Survivors and cozy quests.
Status | Released |
Publisher | |
Author | simonschreibt |
Genre | Action |
Tags | 2D, Bullet Hell, Controller, Cozy, Loot, Roguelite, rougelite, Sci-fi, Space, vampire-survivors |
Languages | English |
More posts
- Patchy 1.5.5: Bugfixes, TweaksJul 08, 2024
- Patchy 1.5.4: Guidance to Shop, BugfixJul 08, 2024
- Patchy 1.5.3: Fixed Mouse ControlsJul 07, 2024
- Update 135: Patchy 1.5.2: Bugfixes & Performance TweaksJul 07, 2024
- Update 134: Patchy 1.5.1: Bugfixes, LocaJul 04, 2024
- Update 133: Patchy 1.5: New "AI" ShipyJul 03, 2024
- Update 132: Patchy 1.4.1: Performance ImprovementsJun 24, 2024
- Update 131: Patchy 1.4: Shopkeeper, Mine-Tweaks, CatalanJun 23, 2024
- Update 130: Patchy 1.3: Gallery, Quest Overview & Guidance, Balancing, Portugues...Jun 02, 2024
- Update 129 - Patchy 1.2 - Progress-Sun, Turkish, Japanese, Balancing, BugfixesMay 20, 2024
Leave a comment
Log in with itch.io to leave a comment.