Simple Array based Dialog System

0 favourites
  • 4 posts
From the Asset Store
Generic save dialog
$4 USD
60% off
Template for a generic save / load system, fully documented in comments and video
  • I used many of the ideas seen in the original dialog thread but trimmed it down for this file to make it easy to see my mistake. I want to have it so when the player walks over the trigger location it sets into action the dialog. Once done I want to allow the player to make choices and the choices will add to a meter that will determine the ending. The problem I am having now is i can not get the dialog to display let alone allow for choice.

    I welcome input in what area of the code i need to look towards to get the dialog displaying and allow the player to choose. I was thinking a if group is activated and key "a" is pressed go to group 3 or something along that lines

    I welcome all input

    dl.dropbox.com/u/29115102/project3.capx

  • didn't read this seriously but I noticed the 'dialogset' group is empty :D

    ... Oh, all your groups are empty... you have to nest things inside

    Also... you have different event sheet but you do not include them in the main one (the one the layout is linked to)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There's what Yann said, and also it happens arrDialog isn't usable.

    I'm wondering in what layout you created it, it doesn't seem accessible.

    Indeed, if I create a new array object, it appears as a layout object.

    So create a new array object in layout 1, and tweak your code so it points this array instead of arrDialog.

    Also, I'm not sure it is wise to use so many 0 opacity tiledbackground. Sprites should do the trick and be easier on the vram/CPU.

    Finaly, for your own choice, you'd have to set it in the "next phase".

    Atm, Phase1 displays "Press 'A' to agree press 'D' to disagree".

    In phase 2 then, instead of "Space is pressed" you should have "A is pressed" and another subevent "D is pressed" and set the dialogs accordingly.

    Fixed capx

    Edit: also I recommand the reading of this tutorial about framerate independence that will come in handy <img src="smileys/smiley2.gif" border="0" align="middle">

  • Amazing, wow I can not imagine how I left the include section that cod explain a fair amount. The transparent part is to test rather the the final style but many thanks on the suggestion. That explains the slow down.

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