Collision questions

Captain Stoudt

  • Posts: 41
Okay, sorry if it seems like I'm asking a lot of questions. I'm relatively good at figuring things out, but there's just so much that goes into video games and I'm on this new software so it could be expected...
Anyways, my question is about the collision aspects of the game. First off, I should probably mention that my actor has to be scaled down by 50% to really fit the ratio of the scenes. That's not a problem as I've got an event to scale him down any time he is spawned (first photo) and I have turned collision scaling on (second photo). The third photo shows the collision box I have attached to my actor. The box is the same size and position among all of my actor animations. I've created a test scene which is only one layer of grass and one layer of collision (the x shapes). The fourth photo shows how my character can only get so close to the collision box (should be able to walk right up to and stop at the X) and the fifth photo shows the collision box assigned to that tile.

Where have I messed up? Is it in my collision scaling or collision attached to the 'X' tiles?

JeffreyDriver

  • Posts: 1807
First of all click RUN > ENABLE DUBUG DRAWING and test your game. It'll show your collision shapes in real time  to give you an idea of what's going on.
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

Captain Stoudt

  • Posts: 41
Hmmm. I enabled the debug drawing but I'm seeing no visual change. I have tried testing just the scene and the whole game and even tried running the game in debug mode. Is there something I'm missing?


Bombini

  • *
  • Posts: 1092
Are you using simple physics?

Captain Stoudt

  • Posts: 41
I have tried simple, normal, and minimal. No change at all.

Captain Stoudt

  • Posts: 41
I never got this question resolved.

JeffreyDriver

  • Posts: 1807
Can you export your game and post the .stencyl file here and I'll have a look.
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

merrak

  • *
  • Posts: 2200
I notice you're growing the actor over 0 seconds, which the Tweening entry in Stencylpedia advises against. Try setting it to 0.01 seconds and see if that makes a difference.

Captain Stoudt

  • Posts: 41
Merrak, I haven't had any issues with that. I did change it to 0.1 seconds. No difference. For some reason, my "tester scene" collision seems to be working, but when I test my "first level" it does not.