[SOLVED]Is it possible to make flashes?

Avatar
JoeyGuy917
146 Posts
Posted Apr 27, 2014
Would it be possible to create white flashes (in a small area, not on the player/player's screen) and then replace whatever is inside the flash. For example, say there is a companion cube, a white flash occurs around it, and during that flash, it becomes a regular cube? Would that be remotely possible?
Advertisement
Registered users don't see ads! Register now!
Avatar
Lamarr
73 Posts
Posted Apr 27, 2014
Replied 5 minutes later
Best option would be particle effetcs.
Avatar
Arachnaphob
412 Posts
Posted Apr 27, 2014
Replied 7 minutes later
You could put an env_sprite over the cube, and quickly turn it on and off. When you do that , that's when you could switch the cube. You could also crete a custom particle system and do that. (I have no idea how though.)
Avatar
JoeyGuy917
146 Posts
Posted Apr 27, 2014
Replied 6 minutes later
Thanks!
Avatar
JoeyGuy917
146 Posts
Posted Apr 27, 2014
Replied 45 minutes later
Followup question: The only way I could get this to work is with templates and env_entity_maker (i believe it is), and those don't have parenting features, neither does the cube I am using as a template. Would it be possible to keep them together somehow?
Avatar
Arachnaphob
412 Posts
Posted Apr 27, 2014
Replied 43 minutes later
You may be able to use a phys_cpnstraint attached to both cubes, and somehow make one visible and one not. It may be a tad unstable, but you MAY be able to do the same with env_entity_makers.
Avatar
TeamSpen210
608 Posts
Posted Apr 27, 2014
Replied 10 minutes later
Env_entity_makers can be parented (point_templates can't). What you should probably do is turn on the sprite/particle effect, ClearParent the env_entity_maker, Kill the first cube then ForceSpawn the second and then Kill the env_entity_maker (with a 0.01s delay between each). Finally turn off the particle effect so the player can see the new cube.
Avatar
JoeyGuy917
146 Posts
Posted Apr 27, 2014
Replied 1 hour later
I believe I still need the point template, and when it is not in the same area of the cube, the entity that is created is in the void (I assume)
Avatar
TeamSpen210
608 Posts
Posted Apr 27, 2014
Replied 54 minutes later
You want to have a point_template (not in the void to stop it leaking), just put it in the middle of the cube you are using as a template.
Avatar
JoeyGuy917
146 Posts
Posted Apr 27, 2014
Replied 2 minutes later
I know that, but what if the player were to move the cube, before it was activated.
Avatar
CamBen
973 Posts
Posted Apr 27, 2014
Replied 2 hours later
That would be okay. As Teamspen said, env_entity_makers can be parented.
Avatar
srs bsnss
552 Posts
Posted Apr 28, 2014
Replied 10 hours later

CamBen wrote:
As Felix said...

Sorry for coming here just to call you out, but it was actually TeamSpen.

On topic, yeah, parenting an env_entity_maker is easily done and will work for what you want.

Advertisement
Registered users don't see ads! Register now!
Avatar
CamBen
973 Posts
Posted Apr 28, 2014
Replied 3 hours later

srs bsnss wrote:
CamBen wrote:

As Felix said...

Sorry for coming here just to call you out, but it was actually TeamSpen.

On topic, yeah, parenting an env_entity_maker is easily done and will work for what you want.

Whoops, read that wrong. Fixing it.