Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1327
Rep : 0
Join date : 2014-12-05
View user profile

2D Double Jump problem

on Fri Dec 05, 2014 8:25 am
Hi guys,

I'm fairly new to Unity, but i have worked with C# on a daily basis for almost a year now.

I have made a 2D game from the character motor in the Unity sample assets. It's been expanded with a double jump function, so the character can jump again if doubleJump is false.

I have platforms in 3 layers.

It works as intended until i jump and hit a platform above me - then it's like it sets doubleJump = true, but i have no idea why.

The platforms i spawn has Layer: Ground.

Can anyone please help me see what the problem is? Smile

PlatformerCharacter2D: http://pastebin.com/vP350N3J

Platformer2DUserControl: http://pastebin.com/PPnS8qRg

Thanks
Back to top
Permissions in this forum:
You cannot reply to topics in this forum