i followed a tutorail for this and it dosen't work.

what is the actual error message in console window?

i’m guessing its null reference or so?
that means need to assign the charactercontroller into this public field, in inspector:

public CharacterController2D controller;

ps. better use code tags to embed scripts into messages, so can see line numbers

1 Like