Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → help in cogs
help in cogs
2004-04-22, 8:16 PM #1
I want to make a thing appear when a switch is pressed.And I want to make walls to close in on the player(like the garbage masher) automacticly.Need help.

------------------
When 900 years you reach look good you will not-Yoda
Shutup you old creep-Justin(my real name)
My Main Objective------ Is to make Jk Real......No i mean Really Real.
2004-04-22, 11:40 PM #2
Hi there [http://forums.massassi.net/html/smile.gif]

Just so as you know, you can't physically "move" the walls - only simulate it by moving wall-shaped 3DOs [http://forums.massassi.net/html/redface.gif]

That is - unless you're willing to cut up *a lot* of sectors and gradually make all the adjoins visible - think of sectors outwards coming in (similar to how you get "rising" water in some of the JK & MotS puzzles...

Those are my suggestions - personally, to improve framerate, I wouldn't advise the latter method - moving 2 wall 3DOs would probably be th best idea...

As for the thing appearing when a switch is pressed - there's something similar in the Massassi public COG archives - something like "AI_behind_you" or something similar - that only requires a quick, marginal re-write for different template support, and an "activated" message... [http://forums.massassi.net/html/smile.gif]

I'm at work right now, so I can't drum up and test both cogs for you *now*, but I should be able to once I get home - that is unless Slaw beats me to it [http://forums.massassi.net/html/rolleyes.gif] [http://forums.massassi.net/html/wink.gif] - *throws it in Slaw's direction* - t'is all yours if you want it, Slaw [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-04-23, 3:35 AM #3
Code:
# Simple cog to create an object 
# at a specified postion, 
# at the flick of a switch
#
# 04/2004 gbk
Symbols
	Message Activated
	Surface Switch
	Thing Ghost
	Template Type
	Int I=0		Local
End
Code
	Activated:
		If(!I) //Comment out this line to create multiples
		CreateThing(Type, Ghost);
	Stop;
End


The whole wall smashing thing aint as easy. It can be done, itjust requires alot of non-cog work. 3d0s and whatnot. Its very scary.

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!