Adam's Lair Forum

game development and casual madness
It is currently 2017/04/25, 12:35

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2017/01/20, 05:49 
Junior Member
Junior Member

Joined: 2016/05/15, 18:27
Posts: 45
Role: Hobbyist
Hey,

So I've been following this tutorial on how to make a 2D platformer controller in Unity. I had been replicating it quite well in Duality, until I tested it. Upon testing, it would just not work. Oddly, in the transform, the x and y values would change between 0.00 and -0.00.

Gif of issue:
Image


Here's the code:

Controller2D.cs

PlayerController.cs


Image of colliders:
Image

EDIT:
Also just an FYI most of the code came off this forum, so thanks to whoever originally made it.


Top
 Profile  
 
PostPosted: 2017/01/20, 12:54 
One-Hit Wonder
One-Hit Wonder

Joined: 2016/12/30, 19:44
Posts: 1
Role: Hobbyist
(Handled on Discord)

(turned out to primarily be an inverted y-axis treating positive y as up, rather than down)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group