No announcement yet.

2D Sidescroller Game Swapping Characters

  • Filter
  • Time
  • Show
Clear All
new posts

    2D Sidescroller Game Swapping Characters

    I've been working on a 2d sidescroller game where the player can swap from one character to the next. When playing the game without swapping characters no errors occur. However, when you swap characters errors pop up. I can't figure out how to fix my code someone please explain what I'm doing wrong thanks.

    It's most likely because your event tick is running much faster than your ability to transition between characters. So the control rotation is trying to fetch a "controller" that is null for a few moments. Try to plugging in your GetController into an IsValid node before setting each Control Rotation. I'm assuming this is a single player game, correct? Otherwise Get Player Controller -> Index 0 is going to be a headache down the road
    UE4 Tutorials
    Multiplayer / Replication Series
    Discord Dilemmas Series

    Marketplace Assets
    The Perfect Storm

    Dynamic Radial Menu