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
- Update 128 - Patchy 1.12: New Music, Italien, Performance, Bugfixing, Tweaks5 days ago
- Update 127 - STEAM RELEASE!14 days ago
- Update 126 - All Events > Cozy Space Survivors Events > Damage Numbers, Impact P...17 days ago
- Update 125 - Mine Push, Tweaks, Bugfixes19 days ago
- Update 124 - Hula-Hoop Tweaks26 days ago
- Upadte 123 - End Game Animation27 days ago
- Update 122 - Release-Date-Trailer!!!!29 days ago
- Update 121 - Rainbow of Love & Boxy Guidance33 days ago
- Update 120 - Missile Launcher Unlock, Splash Damage Visualization34 days ago
- Update 119 - Missile Launcher39 days ago
Leave a comment
Log in with itch.io to leave a comment.