Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Found a pretty interesting game bug in my game that i thought i would share.

If happens when you jump with one character and quickly swap to the other so the character in the air gets the opposite characters jump speed  

How do you handle character movement?

A script that is attached to the main camera enables handles movement depending on the active player

(1 edit)

have you looked into spawning two players that handle their own movement separately and the camera just switches the possessed player (using the possess node: https://docs.unrealengine.com/...) hopefully I was helpful :D

I found a easier way to fix the bug. Al i had to do was set the verticalVelocity = 0; when u swap characters

Lol that works too and is much easier :P

I had a similar issue a while back when I was switching between 3 characters. Basically the issue is that the movement mode for the Character class is static, so its shared between all characters on the level.  So as you switch characters, the new movement mode is propagated to all children of the Character class (see the floating below).

The only "real" fix would be to modify the character class itself. I ended up restricting the switch to when the character is standing (Movement Mode Walking). Does your solution fix the issues on the vid?


Yeah u can no longer give one characters jump speed to the other

Real simple fix 

If you go to you character movement and look for update physics with no controller and set that to true it will stop that

Lol, i have the same problem