More collisions and little physics

posted in BKP Game journal
Published May 07, 2018
Advertisement

Hi everybody,

It's been a while, hopefully, I have new stuff. let have a look at a video to see the news.

- The dark blue platform will make the character move to the right side. you will see it moving right but as there is no animation looks like I move it myself. this is a platform property: slider.

- the tiny platform down is just to test the speculative collision if I come with full speed, in this case, it is around 16pixels/frame

- the red platform is sticky and slows the character movements (except jump: todo) Property: sticky

- the platform just above allow to go through from down, it is not a property but caused by the structure of the platform, all platforms are made with 4 faces with a flag that allows or not to go through that face. It has to be combined with a boolean (allowed_in_platform = True) to allow the character to not be ejected from the platform

- the obvious one is the ice platform as you can see you can reach full speed and slide longer before being able to stop. sticky = 0.0f. At 1.0f your object cannot move at all.

- Multi-jumps, I just made it easy for game development. It is just a variable to set (here at 2) to decide how many consecutive jumps are allowed.

Here I hide the platforms' sprites and show they collision boxes, you can notice they have different size. You can see the character's collision point and bounding box.

coming next. more physics, going back the game design and story.

next time I should be able to present the beginning of the game. This may take sometimes as I need to make a lot of decision (reversible for some of them)

see you soon.

Previous Entry Min collisions
Next Entry Scroll Mem and Text
3 likes 2 comments

Comments

Rutin

Looking good! Nice work! :) 

May 07, 2018 03:18 PM
lilington

:)

May 07, 2018 03:28 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement