Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-05-08 13:39:12

capasha
Member
Joined: 2015-02-21
Posts: 4,066

[Help] Unity Roll-A-Ball

So I have been started to play around in Unity. Right now I'm a beginner and wonder why my Roll-A-Ball use movement directions wrong with keys or WASD.
If I press W I go backward, If I use S I go forward, If I press on D I go Left and so on.

This should be the exactly code that the guy is using. Still it wont work correct for me.
https://pastebin.com/Fwe0ZWZh

What do I do wrong?

Offline

#2 2017-05-08 14:18:13

SmittyW
Member
Joined: 2015-03-13
Posts: 2,085

Re: [Help] Unity Roll-A-Ball

Sounds like your camera is rotated 180 degrees. Make sure it's straight.

Offline

#3 2017-05-08 14:19:31

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Help] Unity Roll-A-Ball

Could you maybe upload your unity project to dropbox or something and share a link here?
Might be something wrong with your scene.

Offline

#4 2017-05-08 15:13:41

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Help] Unity Roll-A-Ball

Here is the pack, https://dropfile.to/jEK09z8
I have looked through it and can't see anything that is wrong.

Offline

#5 2017-05-08 16:04:54

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Help] Unity Roll-A-Ball

I can't remember me having to mess around with it... But I think Unity had some odd update.
Importing his github project gives inverted controls too.

So basically what you have to do is switch horizontal and vertical around in your code and it works. Can't really find anything else that would be messed up.

Offline

#6 2017-05-08 16:33:19

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Help] Unity Roll-A-Ball

den3107 wrote:

I can't remember me having to mess around with it... But I think Unity had some odd update.
Importing his github project gives inverted controls too.

So basically what you have to do is switch horizontal and vertical around in your code and it works. Can't really find anything else that would be messed up.

I have tried to change that too, it will still be different controls.

Offline

#7 2017-05-08 19:20:27, last edited by den3107 (2017-05-08 19:21:41)

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Help] Unity Roll-A-Ball

capasha wrote:

I have tried to change that too, it will still be different controls.

That's odd, since it worked for me.

EDIT: Are you looking at your editor view, or your game view? Since your editor view is a matter of perspective if it's inverted or not.

Offline

den31071494267627658917

Board footer

Powered by FluxBB

[ Started around 1732393302.8879 - Generated in 0.040 seconds, 12 queries executed - Memory usage: 1.43 MiB (Peak: 1.55 MiB) ]