Forum rules - please read before posting.

Player duplicate appears when starting game mode

Hi!

I just wanted to see if it's possible to help me figure what I've done wrong with my scene. Everything has worked perfectly for most of the '2d primer' tutorial - until I got to the 'create player' segment. It all worked perfectly but when I play the game it has a static version of my character (that's actually the Idle animation looping). It doesn't move or anything, and the other version of the character moves and walks around as expected. I can't for the life of me figure out what I've done or what's wrong with the scene.
Attached some screenshot so it might help to spot something that's obvious to a non-beginner like myself :)
Thanks a lot!

Comments

  • edited November 2023

    Sorry images aren't showing up not sure what's going on

  • Welcome to the community, @MatteWeirdos.

    In your Console window, does AC report anything amiss? It should alert you if it's detected multiple Player characters.

    Though, it may be that one is just a sprite - and not technically a character.

    Try opening the Scene window at runtime, and clicking on both sprites in turn - and have a look at which objects then get "pinged" in the Hierarchy.

    The Player prefab - spawned in at runtime - will appear in the "DontDestroyOnLoad" section at the bottom. Are both sprites a part of the same prefab, or are they from indpendent objects?

  • Ah that's it! Thanks so much - it seems I dropped an animator mistakenly on a BG object and managed to detect it as you suggested, while choosing them while the game was running. Thanks again!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.