[RPG] Conversation box problem
Hi, I've been trying to add conversation box to the screen, but failing everytime.
My intention is to do something like this: http://www.videogamerecaps.com/images/suikoden-part11-7.jpg
so, you see the box with some transparency pop up also text on top of it.
what i tried:
I made new attribute to the game, I call it "talk" boolean set to false.
NPC with rule whenever my character overlaps or collides with this NPC, change attribute game.talking to "true."
In my box, graphic was set to the visibility to "false" earlier.
then I add rule to box, whenever the attribute game.talk set to "true", self.Graphic.Visible should be "True."
This far, nothing shows up when I try to collide my character with NPC.
This is my first time making game, I had no experience or whatsoever in coding, I only use logic.
Comments
Visibility can't be changed during runtime. However, self.color.alpha can. If you want the box to be invisible before you collide with the NPC, and transparent afterwards, you could have a rule saying if game.talking is false change attribute self.color.alpha to 0, and another saying if game.talking is true, change attribute self.color.alpha to something like 0.4 (anything less then 1).
In addition to what @asheft said above...
This was just posted today and might get you started: http://forums.gamesalad.com/discussion/69993/free-typewriter-dialogue-story-display-template
And here's one I made: https://www.dropbox.com/s/jf7p07e7x1r38je/Dialog v3.zip
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@asheft Thank you very much, it solved my problem!
@tatiang Thank you very much, very thoughtful of you!
You're welcome!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User