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 → Simple 3do Cog Needed
Simple 3do Cog Needed
2004-07-17, 4:37 PM #1
I need a cog, for when you enter my level, my ghost sprite isn't there, but when you hit a switch it makes my ghost Sprite appear. when you hit the switch again, my ghost 3do disapears, which makes the sprite disapear also. If that's possible, it would be greatly appreciated. ThankS!

------------------
Your Owners Clan Leaader,
_yo_wasup_
-=__/¯¯l¤¥Ø¤l¯¯\__\/\/ª≤uÞ_=-
http://www.TeamYo.org
2004-07-18, 4:21 AM #2
OK... You need a switch, a position, and your ghost model. Sprite? Hm... OK... The sprite can be a simple explosion without a timer. Then when you hit the switch, they are created. As they are created, you capture them. When you hit the switch again, you destroy your captured objects.

Simple, eh?

/Edward
Edward's Cognative Hazards
2004-07-18, 10:31 AM #3
not not really lol.

i'm guessing the symbols would be
switch (surface)
sprite (thing)
and just put the ghost thing where you want the sprite to be, right?

how do you enter a level and not see the 3do, but have the 3do appear when you hit the switch, thats where my confusion sets in.

------------------
Your Owners Clan Leaader,
_yo_wasup_
-=__/¯¯l¤¥Ø¤l¯¯\__\/\/ª≤uÞ_=-
http://www.TeamYo.org
2004-07-19, 2:16 PM #4
I would delete this post but I cannot. Look below for your answer!

[This message has been edited by F-Body (edited July 19, 2004).]
This is retarded, and I mean drooling at the mouth
2004-07-19, 2:41 PM #5
Ok here's a closer attempt to what you want.
Sorry for the double post but I didn't want to clutter my other.
You need to create a new template such as +raildet_exp, only have no timer. Timers tell how long the sprite will show.
Code:
# [F-Body]
#
# This COG is not made or supported by LucusArts Entertainment Co.
symbols
message		activate

thing		ghost0
thing           vghost0             	local

surface 	switch1

sound   	switchsnd=beep1.wav

template	explosion_tpl=+my_exp

flex        	on=0    	local

end
#========================================================================================
code
activate:
   if (on == 0)
   {
      SetWallCel(switch1, 1);
      PlaySoundPos(switchsnd, SurfaceCenter(switch1), 1, -1, -1, 0);
      vghost0=CreateThing(explosion_tpl, ghost0);
      CaptureThing(vghost0);
      on = 1;
   }
   else if (on == 1)
   {
      SetWallCel(switch1, 0);
      PlaySoundPos(switchsnd, SurfaceCenter(switch1), 1, -1, -1, 0);
      DestroyThing(vghost0);
      on = 0;
   }
   Return;
end


This works with stormies

[This message has been edited by F-Body (edited July 19, 2004).]
This is retarded, and I mean drooling at the mouth
2004-07-19, 5:44 PM #6
Is this a template without a timer?

# DESC:
# BBOX: 0 0 0 0 0 0
+fire_sprite none orient=(0.000000/0.000000/0.000000) type=cog move=physics thingflags=0x10000000 sprite=burn.spr mass=0.050000 physflags=0x200 vel=(0.000000/0.000000/0.000000)


------------------
Your Owners Clan Leaader,
_yo_wasup_
-=__/¯¯l¤¥Ø¤l¯¯\__\/\/ª≤uÞ_=-
http://www.TeamYo.org
2004-07-19, 11:01 PM #7
Yep.
Catloaf, meet mouseloaf.
My music

↑ Up to the top!