godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.93k stars 1.65k forks source link

2d/split_screen_platformer: Nonexistent function 'move_and_slide' in base 'KinematicBody2D' #36

Closed twinpigs closed 7 years ago

twinpigs commented 7 years ago

Project don't run because of

Invalid call. Nonexistent function 'move_and_slide' in base 'KinematicBody2D'

In player.gd:38

williamd1k0 commented 7 years ago

I think you are using Godot 2.1.x. The KinematicBody2D::move_and_slide method does not exist in Godot 2.1.x. Try using the 2.1 branch https://github.com/godotengine/godot-demo-projects/tree/2.1

twinpigs commented 7 years ago

I think this demo needs to be updated according last stable version. Isn't it?

williamd1k0 commented 7 years ago

I think the demo is already updated.

player.gd:38 (master): https://github.com/godotengine/godot-demo-projects/blob/master/2d/split_screen_platformer/player.gd#L38

player.gd:38 (2.1): https://github.com/godotengine/godot-demo-projects/blob/2.1/2d/split_screen_platformer/player.gd#L38

twinpigs commented 7 years ago

Oops. Wrong branch. I'm sorry.

williamd1k0 commented 7 years ago

No prob