Playmaker Forum

Playmaker News => Work In Progress... => Topic started by: Lane on January 02, 2015, 04:26:32 PM

Title: #1GAM January - Decompressionator
Post by: Lane on January 02, 2015, 04:26:32 PM
Initial Day One gameplay mockup GIF
(http://i.imgur.com/y38Yv7n.gif)

Inspirations
| Commander Keen
| Spaceman Spiff (Calvin & Hobbes)
| Tron
| Planetary Annihilation
| Heavy Bullets

Goals
| Allow as much raw destruction as possible to enemies and environments
| Flat colors, emissive material effects
| Some puzzles
| Challenging gameplay due to lack of ammunition
| Ominous badguys
| Fun with physics
| Short story
Title: Re: #1GAM January - Decompressionator
Post by: coffeeANDsoda on January 02, 2015, 05:29:29 PM
Kind of reminds me of rez and that rail gun shooter minigame in yakuza 4.
Title: Re: #1GAM January - Decompressionator
Post by: Lane on January 04, 2015, 12:55:15 AM
Download Build 003 (http://dl.dropboxusercontent.com/u/38606641/1GAM_01/Decompressionator-1GAM-Build_pa_0.003.zip)

(http://i.imgur.com/DBFssEb.gif)






Controls:
Left Mouse Button : Fire Translaserfier
Middle Mouse Button : Use Smashnetic Gun (point at an enemy chunk and hold MMB)
Right Mouse Button : Activate Vacuumtor (Hold down and aim at white blocks +ammo)

Wreck the enemy!




Title: Re: #1GAM January - Decompressionator
Post by: Alex Chouls on January 04, 2015, 12:31:32 PM
Those game mechanics look super fun!
Title: Re: #1GAM January - Decompressionator
Post by: coffeeANDsoda on January 04, 2015, 02:05:44 PM
Did you make multiple meshes of the same object model when you added the damage animations? Or was there some coding involved?
Title: Re: #1GAM January - Decompressionator
Post by: Lane on January 04, 2015, 02:19:50 PM
I'm using Fracture Pro (https://www.assetstore.unity3d.com/en/#!/content/7192).

Here's how it basically works..

Fracture has its own collision system that you can use with bullets and regular collisions to figure out when it should shatter the object but I ended up making my own collision system in Playmaker so that it was easier to contain and control. I basically tell the Box to check any collision that occurs on the layers that are allowed to hurt it and see what the magnitude was, then subtract that from a total of endurance the box has and eventually it will drop below zero and I send the generic TriggerDestruction() event for it and it breaks the box into bits. The lasers just subtract from the Health variable and will kill the box the same way if it runs out of Health. Had to make 2 actions for this, one to get the Sqr Magnitude of the vector and one to fire the TriggerDestruction() method on the Fracture script.

The downside to using it is that I don't see a way to pool this solution since the Fracture system destroys the host object, but other than that it seems to work and perform pretty good. Too bad it only works on Boxes - thats a huge drawback to it.
Title: Re: #1GAM January - Decompressionator
Post by: coffeeANDsoda on January 04, 2015, 02:23:28 PM
If I ended up adding damage effects to a game, would it be better to go with a method like some of the earlier playmaker tutorials? If I'm not mistaken, just make a few altered objects and somehow add them to a parented object with the main FSM that object has attached? I'm looking for free alternatives to similar mesh modifying systems, that's why I ask.
Title: Re: #1GAM January - Decompressionator
Post by: Lane on January 04, 2015, 02:40:45 PM
Not sure, give it a try and if it works then keep it.
Title: Re: #1GAM January - Decompressionator
Post by: coffeeANDsoda on January 04, 2015, 05:37:03 PM
On the game that I am currently working on, I have boxes and thought about giving the player the option to push them into other objects to break.
Title: Re: #1GAM January - Decompressionator
Post by: rik on January 08, 2015, 09:23:29 AM
give new link it was not working any more
Title: Re: #1GAM January - Decompressionator
Post by: Lane on January 08, 2015, 09:28:13 AM
All better! Dropbox doesn't like links with the https://....
Title: Re: #1GAM January - Decompressionator
Post by: Lane on January 14, 2015, 07:51:33 PM
Download Build 005 (http://dl.dropboxusercontent.com/u/38606641/1GAM_01/Decompressionator-1GAM-Build_pa_0.005.zip)

A couple of levels, still buggy, second level is like a big area but the AI is pretty stupid with all of the debris.
Title: Re: #1GAM January - Decompressionator
Post by: Lane on January 15, 2015, 04:38:51 PM
Fixed a bug with the 2nd level not opening the exit after you kill everything. Same Download link in the previous post.