Skip to content

16 comments

Please don't take photos of Code.. just copy paste it..

..preferable in code block (at least it's dark mode)

You already got PlayerMovement defined somewhere. Try ctrl + shift + F and search for PlayerMovement, or rightclick -> find all reference on the class itself. Remove one of the instance.

5 points

Sorry, I don't have reddit on my PC yet. Its brand new, so I couldn't copy and share to here.

This is the first script I've written though. I don't know how I could've defined it elsewhere.

-1 points

Sometimes this happens if you accidentally duplicated your script. Double check by searching for it in unity’s project window.

2 points

Thanks! I think this worked. I mean, I couldn't find the duplicate, so I just deleted the script i was working on, and another one kind of just appeared in the assets window out of nowhere. After deleting that one too, and starting over, it seems to work.

For the first time since I started unity, I can move my "character"!

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.