Update 18 - Teleport
Teleport
Finally, it works!
I tried first teleporting the ship but had some problems (I tried setting the position in the normal process-function, but I need to do it in a specific physics function - I learned that later) and wanted to be smart: Instead of the player, I can just offset the whole universe (except the player). This worked very well (especially since the background + nebula was not offset, so the jump was not noticeable) - at least for static objects. The idea was: I make a node "universe" which gets offset if necessary and all objects are a child of this node - except the player.
But: Rigid bodies created many problems (because they need to be offset in a specific physics function). For example: Asteroids were visible BUT didn't react anymore to impacts etc. Trash pieces surrounding earth were working (and reacting) but they changed their trajectory. Interesting: I didn't see problems with the mines + enemies...
As soon as I solved the issues (by forcing a position offset in the physics routine) I noticed that the bodies (e.g. asteroids) worked BUT all effects (impact, destruction) were not correct anymore because they had offsets ... not exactly sure why. I got the impacts running by adding them to a vfx-node which was NOT a child to the universe-node, but then the explosion- & damage-effect didn't work...no idea why.
Anyway, at the end I went back teleporting the ship instead of everything else! This works well now and the only thing I need to do is a better camera transition and maybe a post fx "teleport" effect to hide the jump.
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.