Help!
Hi there! It's my first post in this forum. Hope I'm doing it right!
OBS: I posted this same post in section "General Discussions", but realized it was at the wrong place. Gonna delete the previous one an maintain only this one here. I'm sorry for the mess!
I have an issue related to collision. I'll adress it further.
MY INTENT
I wanted to recreate something similar do the main movement mechanic presented in the game Dandara (https://youtu.be/iWOrGvzUmZE?t=667 - already at the right time).
First Try
My first try went something like this: C3P File - drive.google.com/file/d/1ykUx-W_mu7tQ8bkVb5f6hzI-gFj3LcOx/view
File Name: 0Grav 2
Commands: A key, D key and Space key.
THE FIRST PROBLEM
It does what I want, but, since the obj_PlayerMover is, at the same time, the object responsible for player movement and for collision checking, when it rotates, the spr_Player - soon to contain the animations - will be in a different distance from the wall depending obj_PlayerMover orientation.
Notice that obj_PlayerMover perfectly detects and collides with obj_Floor, which is amazing, and I presumed it would stay like that but...
SECOND TRY
My second try went something like this: C3P File - drive.google.com/file/d/1SkmXohduHqEyM7QCRaGVNUYBdBJJp4j-/view
File Name: 0Grav 3
Commands: A key, D key and Space key.
THE SECOND PROBLEM
In my second try I used 2 sprite objects - 1 responsible for collision (obj_PlayerCollider) and 1 responsible for player movement (obj_PlayerMover)
obj_PlayerMover behaves essentially like in First Try, but obj_PlayerCollider has some issues when colliding with obj_Floor:
It goes "in" obj_Floor...kinda digs itself in, and the amount that goes in varies each time I jump.
Plus, after landing anywhere, if I point inwards obj_Floor and jump, it will just pierce through obj_Floor, not really detecting it's edges. How come this wasn't the case in First Try? If you try this in First Try file (0Grav 2), you will see it's not possible at all. I expected collision to work in Second Try (0Grav 3 file) the same way it did in First Try(0Grav 2 file).
Thanks to all replies in advance.
PS: I'm a Construct and general programming newbie.