Page 1 of 1

secret button for crystal mine

Posted: Wed Dec 31, 2014 1:02 pm
by bongobeat
I figured how to add a secret button in the mine tileset: for the mine I think it need a completely new model, but for the crystal mine tileset, it's easy to make a custom button:

I ve modified a castle button, and use the rune particle to show the "invisible" button on a crystal mine pillar:

here what it gives:
you can see small rune particles. On the faceview it is hard to see in the screenshot, but you saw it better in the game.
SpoilerShow
Image
SpoilerShow
Image
it is relatively well hiden, as a secret button should be.
the object definition:
SpoilerShow

Code: Select all

defineObject{
	name = "mine_secret_button_crystal_pillar",
	baseObject = "wall_button",
	components = {
		{
			class = "Model",
			model = "assets/models/env/castle_wall_button.fbx",
			offset = vec(-0.16,0.78,0.335),
		},
		{
			class = "Particle",
			particleSystem = "runic_2",
			offset = vec(-0.16,0.78,0.335),
		},
		{
			class = "Light",
			offset = vec(-0.16,0.78,0.335),
			range = 3,
			color = vec(0.5, 1.0, 2.5),
			brightness = 3,
			fillLight = true,
		},
		{
			class = "Clickable",
			offset = vec(-0.16,0.78,0.335),
			size = vec(0.25, 0.25, 0.25),
			--debugDraw = true,
		},
	},
	replacesWall = false,
}
the particle: (it is the same particle than the castle button but without glow, stars and fog)
SpoilerShow

Code: Select all

defineParticleSystem{
	name = "runic_2",
	emitters = {
	
		-- runes
		{
			emissionRate = 4,
			emissionTime = 0,
			maxParticles = 100,
			boxMin = {-0.15, -0.1,-0.1},
			boxMax = { 0.15,  0.1, 0.2},
			sprayAngle = {0,360},
			velocity = {0.05,0.1},
			texture = "assets/textures/particles/magic_runes.tga",
			frameRate = 2,
			frameSize = 32,
			frameCount = 9,
			lifetime = {1,2},
			colorAnimation = false,
			color0 = {1, 1, 1},
			opacity = 1,
			fadeIn = 0.1,
			fadeOut = 0.1,
			size = {0.05, 0.075},
			gravity = {0,0,0},
			airResistance = 1,
			rotationSpeed = 1,
			blendMode = "Additive",
			depthBias = 0.1,
			objectSpace = true,
		},
	}
}
you have to place a crystal pillar (or even on a crystal wall, as long there is some glowing crytal behind), the orientation should be 1.
then uncheck the model in the component description, or you will see a castle wall button.
SpoilerShow
Image

Re: secret button for crystal mine

Posted: Wed Dec 31, 2014 9:00 pm
by Mal85
Nice! I am pretty sure I would just walk right past those sexy little crystal switches. I have a feeling I may end up using quite a few of your assets and scripts by the end of my dungeon Bongobeat. ^^ Very Cool.

Re: secret button for crystal mine

Posted: Thu Jan 01, 2015 11:43 am
by Ciccipicci
Thanks!

Re: secret button for crystal mine

Posted: Thu Jan 01, 2015 3:44 pm
by bongobeat
I suppose that it has to be used with parcimony, or it can be awfull to check every crystal.
Here I suppose it is ok, as it is on the same area of a secret place.

Maybe the rune particle should be modified to something bigger, or a difference of color, that it can be found more easyly.

Re: secret button for crystal mine

Posted: Thu Jan 01, 2015 8:16 pm
by Isaac
bongobeat wrote:I figured how to add a secret button in the mine tileset: for the mine I think it need a completely new model, but for the crystal mine tileset, it's easy to make a custom button...
It really neat... in fact... I don't see it. Is this to be a ~more difficult to find~ secret button for the mine set? To compliment the existing secret button that is already in the mines?
it is relatively well hiden, as a secret button should be.
Actually... A real secret button should be well hidden, but in the game, I do think that all buttons should be visible to the eye when looked at; just that the secret buttons should be easy to miss in passing. Having to actually check the stones of a hundred identical walls would quickly become tedium... a completely concealed button should only be used in tightly confined space with a suspicious dead-end, or no visible exit.

Re: secret button for crystal mine

Posted: Sat Jan 03, 2015 4:17 pm
by Drakkan
so simple and cool solution, thanks !