Page 1 of 1

Grimrock 1 text walls

Posted: Tue Mar 10, 2015 4:17 am
by RayB
Trying to spawn a text wall but the gold rune text flickers when running a preview. I found I can use a regular text wall with a secret door over it. It works but a click on the secret door covering the text wall will reveal the text box with text. Not too cool. I can also use a drainage wall and then destroy the drainage wall and spawn a text wall. That works but the text wall doesn't have a drain and the change looks weird. What is with the flickering? Is there any way to spawn a text wall without it? And why does the drainage wall work? After all you destroy the drainage wall before creating the text wall. Something funny going on!

Re: Grimrock 1 text walls

Posted: Tue Mar 10, 2015 4:40 am
by minmay
The flickering happens because the wall text model is overlapping with the existing wall model. Your drainage thing "works" because the drainage wall model replaces the automatic wall model, and when you delete the drainage wall entity it deletes the model leaving a blank space, which you're then replacing with the wall text.
Simply make a version of the regular wall model with replacesWall = true and destroy that and spawn the wall text.

Re: Grimrock 1 text walls

Posted: Wed Mar 11, 2015 6:42 am
by RayB
I really am new at this stuff and don't know how to go about making a version of a regular wall model. But thank you for your reply. The flickering was really mind boggling to me.

Re: Grimrock 1 text walls

Posted: Wed Mar 11, 2015 7:54 am
by minmay
You do not need to edit a model. Just define an object like this:

Code: Select all

defineObject{
	name = "dungeon_wall_01",
	class = "Decoration",
	model = "assets/models/env/dungeon_wall_01.fbx",
	placement = "wall",
	replacesWall = true,
	editorIcon = 8,
}
and place it on the wall, then when you want to create the wall text, just destroy it and spawn the wall text on the same frame.

Re: Grimrock 1 text walls

Posted: Thu Mar 12, 2015 3:16 am
by RayB
Works like a charm! And makes coding a lot simpler. Thank you very much.