#Help me please

1 messages · Page 1 of 1 (latest)

maiden burrow
#

I’ve been having a problem with my code and I can’t figure out what’s wrong with it

faint rain
#

and...?

maiden burrow
#

there

#

im on unity 3d and using a rigid body

faint rain
#

what does "not work" mean here

#

it doesn't work ever?

maiden burrow
#

yeah

#

my player just wont jump

faint rain
#

is Jump getting called when it should?

maiden burrow
#

yes

#

its a public float named readyToJump

faint rain
#

huh?

#

I'm asking if the Jump method is getting called when you press space

maiden burrow
#

ohhh

#

yes it is i put the keycode.space in there

faint rain
#

ok, did you confirm that it is using debug log?

#

or anything?

#

or are you just saying that it does

maiden burrow
#

no im just a begginer i have no idea whats happening

#

i will try tho

faint rain
#

you can use Debug.Log inside your jump method to see if it's getting called

maiden burrow
#

ok ill try that

faint rain
#

something like Debug.Log( "jumping!" )

maiden burrow
#

cool ill check it now

#

were should i put it

faint rain
#

inside Jump

maiden burrow
#

ok

#

how do you see it

faint rain
#

the Console window

maiden burrow
#

oh then its not working

faint rain
#

ok make sure readyToJump is true and grounded is true

maiden burrow
#

in the updates or just at the top?

faint rain
#

in update is fine

maiden burrow
#

ok cool'

#

THANK YOU SO MUCH

#

IT WORKED

#

THANK YOU MAD

faint rain
#

what i do

#

what did you do

maiden burrow
#

put the things to true

faint rain
#

oh I meant for you to check that they were true lol

maiden burrow
#

lol

faint rain
#

not make them true

#

but sounds like that was your issue

maiden burrow
#

yeah

faint rain
#

maybe call ResetJump in Start()