daniro

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. Thanks man! i will experiment with it when i get home, as far as i can see it's almost the same idea. When i look at the files generated at least i will have a general idea of how to start, really appreciate!
  2. Hello folks, I'm creating a visual novel and i'm struggling a bit into creating a great concept to how to manage the story, branches, actions, events and etc. My first option was to create a JSON file, which works fine for the demo i'm making that is a linear story, but for the full game i'm yet experimenting how to do it better. The game will be online, and the player will have random encounters and how most visual novel works, a kind of affinity bar will help the player get the backstory from the npc's I don't know if i store all the script in a JSON file, or if i make a JSON file for each 'part' of the story like a JSON for npc1, JSON for npc2, JSON for general story, or if i make it all linked to the database. If any of you already did something like this or have some idea, i would appreciate if you can share it with me!
  3. daniro

    Issue with group

    Rich, i tried the solution and it worked like a charm, thank you.
  4. daniro

    Issue with group

    I will input enable The text object like you said, I need the player to click on them. Really appreciate your help Rich, thank you for the fast reply
  5. daniro

    Issue with group

    Oh! i said it was something i overlook lol Thanks rich! i can do the following right? besides it, it's better to enable the input in the group object(this.choices) right? this.choice = game.add.text(0, 0, "Text", {/*style*/}, otherGroup);Edit: got it from this link http://www.html5gamedevs.com/topic/2606-can-text-be-added-to-a-group-or-only-sprites/
  6. daniro

    Issue with group

    I'm having a issue with the group elements; I'm trying to remove them all or kill them and it won't work, it doesn't even trigger an error on console. I don't know if i'm forgetting something, but if anyone can help i will be really glad. This is my shortened code: create: function () { this.choices = game.add.group();},displayChoices: function(index) { for(var i = 0; i < 3; i++){ this.choice = this.choices.create(130, 110, 'choice'); this.choice = game.add.text(130, 140, game.global.script[index].choice); this.choice.inputEnabled = true; this.choice.events.onInputDown.add(this.choiceTest, this); }},choiceTest: function(clicked) { this.choices.callAll('kill'); //this.choices.removeAll();}I want to kill all the 'choice' created when the choiceTest() is triggered, i tried both methods but neither worked, if i am overlooking something i apologize in advance lol Regards, Danilo.