W
WinuX
Guest
Hello everyone,
I have a really hard time to decide how to implement my textboxes. The textboxes as such work perfectly fine, but how to implement them in objects etc is the problem here.
So, I have currently have 2 methodes I could use.
The first one would be to make a certaint amount of objects and use them like this:
as you can see there are 2 objects with nearly the same code in it. the object will be placed above certain objects in game like a picture of a cat or a table. like here(the red things are solids):
When it gets activated it will run a script that opens a new dialouge instance and gives it text with another script. in the first object the text will be "A picture of a cat" in the second it will be "Just a table.".
With this method I can use the object in mulitple rooms but I need a new object for every dialouge that going to happen in the room. It's also really confusing if you have 10 triggers with nearly the same code in it.
The second Method would be having 1 object and creating the dialoug with the creation code, but I don't know if thats all that good.
Which of these Methodes would be the best or are there other better methodes?
Thanks for coming answers^^
And also, im sorry for my bad english it's not my native language(I'm Swiss). if something is not understandable please let me know
I have a really hard time to decide how to implement my textboxes. The textboxes as such work perfectly fine, but how to implement them in objects etc is the problem here.
So, I have currently have 2 methodes I could use.
The first one would be to make a certaint amount of objects and use them like this:
as you can see there are 2 objects with nearly the same code in it. the object will be placed above certain objects in game like a picture of a cat or a table. like here(the red things are solids):
When it gets activated it will run a script that opens a new dialouge instance and gives it text with another script. in the first object the text will be "A picture of a cat" in the second it will be "Just a table.".
With this method I can use the object in mulitple rooms but I need a new object for every dialouge that going to happen in the room. It's also really confusing if you have 10 triggers with nearly the same code in it.
The second Method would be having 1 object and creating the dialoug with the creation code, but I don't know if thats all that good.
Which of these Methodes would be the best or are there other better methodes?
Thanks for coming answers^^
And also, im sorry for my bad english it's not my native language(I'm Swiss). if something is not understandable please let me know