Skip to content

Indie game problem

Hi! Im working on a videogame but i have a problem, when the player jumps from below a platform effector 2d and goes through it, the jump animation is interrumped for a moment and then the character continues with the jump until he lands on the platform effector 2d.

I also have a problem that if the character gets to the very end of any platform he just keeps making the jump animation and the only thing you can do is move to the left or right, but not jump.

​

​

Edited 1 Nov 2023. We only hold this version.

1 points3 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 50% up
Kind
Text
ID
17lfrrw

Author

1
posts
1
comments
0
media
View profile

3 comments

This can be a difficult problem to assess from just text. I'm also concerned Reddit may not be the best place for this. I would recommend hiring a coder on Fiverr to review the code with you. Or you could post it to stack overflow and maybe someone will help you for free. I would attach a video if possible as well in which you record your screen and voice over explain the problem.

1 points

Seems like an animator and ground bool problem. Im guessing you play the jumping animation when player is not grounded, so while player passes through the platform it detects in an instant and continues going up before landing on platform so it plays grounded animation in that instant. Edge problem seems like you check your ground from a smaller area than your hitbox 's ground area, so while you can stand on the very edge of a platform your ground bool returns false and you can't take inputs.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.