How do I create automatic dialogue sequence between player and npc?

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Im trying to figure out a way when the player walks up to a Npc, on collision there is dialloguq. (i know how to do this) But I want that after the first on collision text from the NPC maybe the players sprite will say something then the npc and so on depending on how many lines I need. I think i would perfer automatic instead of clicking to progress but if it easier to do with clicking i will do that LOL. I might also want to lock the player in place so player doesnt walk away from the lore drop idk

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • For the dialogue can do with instance variable on the npc, so default is 0 - player presses chat button then if var= 0 show text '1', when you next press the button increase the variable by 1, if var=1 then show text '2' etc under that particular npc.

    To stop the player from moving, when you start to chat you can set a global variable to 1 that was 0 before by default. Then under your player movement events add a condition if that var=0, so when it is 1 you cannot move. After chat has finished, set that global variable back to 0.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)