The Character fell in v3.1 alpha5

No_IENo_IE Posts: 1Member

Hello!

I download 2D Physics Platformer Demo (Rigidbody).
I just simple add 3 lines for enemy.gd:

line 18: var player_class = preload("res://player.gd")
line 62: elif cc is player_class:
line 63: get_tree().reload_current_scene()

Character fell on floor, when I run it.

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 1,000Admin
    Answer ✓

    It looks like the player character is not setup correctly and is rotating around, which shouldn't happen. The player character should be functioning similar to the KinematicBody version of the platformer demo.

    If you have not changed any of the settings on the RigidBody2D player, I would maybe open a issue on the Godot GitHub demo repository and see what they think. It could be that either something on the demo is not setup correctly, or something with the 2D physics has changed and the demo needs to be updated.

Sign In or Register to comment.