Follow

HELP ME PLEASE :(((((((((( I HAVE NO CLUE WHAT TO DO AT THIS RATE.. I'm reading the error and I have no clue what it means. I put the Actor thing where it was supposed to go and the green square still no move, it doesn't even open, I don't know what this means I've tried all I could even think of :(

· · Web · 4 · 1 · 2

@PumpkinsLinked I think you need to change the type of node the player is to a kinematic2d. At the moment it's just a node2d node

@PumpkinsLinked I don't know exactly what it does or how that language works but, I would check the error message at the bottom.

@germanio Well the tutorial I was following was from 2019, so I'm thinking even if I did fix the problem there would be some outdated stuff in there; so I found a more recent tutorial to follow

@PumpkinsLinked your script extends KinematicBody2D, but your node is a Node2D. You need to change the node to KinematicBody2D in left panel or change the script to extends Node2D.

@PumpkinsLinked actually, just change the node to KinematicBody2D. You are using the method move_and_slide() and this will only work with a KinematicBody2D node

@PumpkinsLinked Your script is attached to a Node2D thus it must extend a Node2D. Based on the fact you are using move_and_slide, I am assuming you meant to attach the script to a KinematicBody2D that is within your player scene instead. Not sure why you are using a Node2D as the root of your player scene to begin with though. Hope this both helps your issue and explains the error.

Sign in to participate in the conversation
YesterGearPC's Retrotech Mastodon Server

Welcome to YesterGearPCs Retrotech Mastodon! We hope you enjoy your stay. This server serves the purpose of discussing retro & vintage technology, primarily computing devices.