#yea here is my script

1 messages · Page 1 of 1 (latest)

hollow surge
#

I made a thread, can you see this?

brittle flame
#

ye

#

so

#

whats wrong with my script ?

hollow surge
#

Can you try changing the AddForce method to use Vector2.up instead of your jump vertical?

#

so something like

Body.AddForce(Vector2.up)
brittle flame
#

ye sure

#

lol

#

wait you said Vector2 up r?

hollow surge
#

Oh I think that's... Along the right track

brittle flame
#

i kinda want it ti jump

hollow surge
#

Kind of hard to tell what's going on with the camera following the player so closely

#

try boosting up the vertical

hollow surge
#

soo maybe multiply it by 20 to see if it's more noticaeable

#

Oh camera isn't the problem, just a little confusing to tell if it's jumping since... The red square is the player, yes?

brittle flame
#

ye

hollow surge
#

I think I saw a small jump in the video

#

Just needs more force I think

brittle flame
#

why if it falls of the edge it just rotate so aggressively

hollow surge
#

Do you want it to be able to rotate?

#

Like at all?

brittle flame
#

maybe not for now

#

now

hollow surge
#

In rigidbody2d go to constraints and check "freeze rotation: Z"

brittle flame
#

ye

#

just did

#

so

#

what do i do

#

increase forces ?

hollow surge
#

Have you tried more force?

#

Yeah

#

Try that

brittle flame
#

my current force is 20

hollow surge
#

Is that what was in the video?

brittle flame
#

ye

hollow surge
#

Try 200?

brittle flame
#

you can see in velocity properties down the script

brittle flame
#

nothin work

#

bru

hollow surge
#

Hmmm

#

Maybe I recommend following a guide?
There are lots of guides on 2d platformer games

#

Maybe check to see how they do their jumping

#

Sorry I couldn't help more 🙏

brittle flame
#

Thx

#

i get it

#

lol

#

instead of Transform