Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

question: my character collides fine now, but when colliding they then slide endlessly into the void. I think this has to do with the move.spdDir in my script. 


move.spdDir(moveSpeed, inputDirection);


i have it like that due to when adding it how you have it listed above, I receive errors and am unable to run the game. I'm unsure how to fix, I've tried deleting this code but it breaks the collision entirely.

tried changing to xSpdySpd and changing what's in the function as move.spdDir(vSpeed, hSpeed); but every time it just causes the player to endlessly skate. I'm not sure what to place in the () to prevent sliding and errors

I am a moron, changed it to move.spdDir(0, 0) and that fixed it jesus i'm so stupid

(+1)

lol. Glad you got it working

Appreciate everything you do, PixelatedPope! Woulda been lost without this collision code