Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ground check not working properly?

A topic by just cater created Aug 26, 2019 Views: 216 Replies: 4
Viewing posts 1 to 2

So basically I made this ground check for my character so that it doesn't jump infinitely

Problem is that when i go across ground tiles it says it's not on the ground (i go across the ground and is ticks and unticks the "isGrounded" bool. Any help? 

Submitted

Are you using BlackThornProd's tutorial? Maybe you

a) forgot to assign the ground check in the inspector

b) forgot to make a new layer

c) didn't put the ground onto said new layer

d) didn't assign the new layer in the inspector

No, in fact, I used Kyle Suchar's tutorial. I'm making a platformer.

Submitted

Cool, platformers are almost always fun. I couldn't find the tutorial you mentioned on youtube, where is it? I usually just check around the inspector for stuff that I didn't drag in. (If you're using Unity. Otherwise disregard my suggestions) :)

Here ya go. I actually fixed it by making the ground in one piece (before i duplicated the same ground sprite 4 times and it would say it's not on the ground randomly). It might be more time consuming to have to modify the sprite in paint.net every time i wanna change it but hey, it works so it should be good, right? ahah.