Snap trap Devlog #2
Hello everyone, heres another devlog on Dream Drop. As I mentioned in the last devlog id either be working on my camera or my script which rotates my player. I decided to go with my rotating script.
Originally when you would stop and rotate you would maintain that angle once you ended the Dream Stop state by either pressing the Dream Stop button or if the bar would run out. Here is a demonstration.
A lot of feedback I got was that they didn't like this. They suggested that once the player had rotated and then ended the Dream Stop state the player should snap to the direction he is actually dropping towards. So I set out to make this change!
Originally I created a new function which would check what the player’s rotation was, but I realised it was redundant because I already had a similar function. This function checks the player’s rotation and then depending what it is it will tell the world which direction to go. For instance if the player rotates 90 degrees the world will move to the left, this is because in Dream Drop the player is static. The function will check if you are between a certain range so for the world to move left the player must be between 45 and 135 degrees.
Once I realised it was rather redundant to have two functions checking the same thing, I decided to make a function which would check if the world is moving in a particular direction then change the players rotation to the appropriate angle. Unsurprisingly this didn’t work straight away because I needed more checks.
I made another IF above checking if the Dream stop function wasn’t true and if a newly created bool was true called shouldsnap. I don’t want my player always snapping to a new position I only want it to happen after the Dream Stop ability. Shouldsnap will become true once the player enables the ability it then changes to false after the player has snapped to the new position.
Heres how it looks! (Ignore the bugs)
I cannot wait for my colleagues and friends to give me some more feedback on this new simple addition. Thanks for reading and I guess you’ll find out what I get up to in the next post!
Cheers!
Ed
Dream Drop
Status | Prototype |
Author | EdjNeal |
Genre | Platformer |
More posts
- Feedback Devlog #4May 31, 2019
- Camera Devlog #3May 17, 2019
- Rotating Player Devlog #1Apr 24, 2019
Leave a comment
Log in with itch.io to leave a comment.