Group Group Group Group Group Group Group Group Group

Hero no longer moves [SOLVED]

#1

First off: Thank you for releasing this.
I’m on Chapter 5: Just set up Robot. My player (Hero) can punch and jump, but no longer moves any direction. The animation plays when I press the arrow keys and he does flip still.
Not sure if it has something to do with moving the public book isGrounded from Hero to Actor script…but I’ve been retracing steps over and over and no luck.
I get the yellow triangle warning: BoxColliders does not support negative scale or size. The effective box size has been forced positive and is likely to give unexpected collision geometry.

Any help appreciated.

#2

@nathansimbahan Can you please help with this when you get a chance? Thank you - much appreciated! :]

#3

Okay. Last night I got the Hero to move once again. I had to copy the Hero and Actor Scriots from the downloaded files of Chapter 4 and paste them over my previous work. It took, but a new problem occurred: The Hero can now walk a little deeper in the Z axis. He looks like he can partially go up the wall a bit. I compared the Transform Rect Positions of the files to mine and they are the same. Do I need to readjust some of the code within the vertical portions?

#4

Hello @driversold, can you upload screenshots? I’m having trouble visualizing your issue.

#5


@nathansimbahan I realize it’s fine in the Scene window, but in the game the hero can walk somewhat into or up the wall before the collider or something stops him.

#6

@driversold based on the screenshot you posted, it seems that the floor sprite mesh is either a.) moved or b.) the spritesheet is offset 1 tile downward.

moving the floor mesh upward to close the gap between the wall and the floor should fix this.

#7

@nathansimbahan It worked. Thanks.