Reverse death animation

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Reverse death animation

Post by Zo Kath Ra »

When you kill a monster, it explodes in a shower of sparks.

I'd like to play this in reverse, so I can spawn a monster while the player is looking.
It would look weird if the monster just appeared out of nowhere.

The zombies have a spawn animation where they crawl out of the ground.
Can it be reversed, so zombies behave like viper roots?

I can't think of any other monsters with spawn animations, are there any?
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: Reverse death animation

Post by Isaac »

Animations can be reversed, and exported from Blender, but the shower of sparks played at death, is a particle system.
User avatar
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Reverse death animation

Post by THOM »

The zarchtons have also a variation with spawn animation (raising up from the riverside) and the spider (falling fom the ceiling).

The Lava Golem has also one - but AFAIK it is unused in the main game.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
AndakRainor
Posts: 674
Joined: Thu Nov 20, 2014 5:18 pm

Re: Reverse death animation

Post by AndakRainor »

I generally spawn the "teleportation_effect" object to do that.
User avatar
akroma222
Posts: 1029
Joined: Thu Oct 04, 2012 10:08 am

Re: Reverse death animation

Post by akroma222 »

Ive always wanted to reverse the Summon Stone's wake up animation :mrgreen:
User avatar
Curunir
Posts: 332
Joined: Fri Mar 30, 2012 11:19 pm

Re: Reverse death animation

Post by Curunir »

I too just spawn in front of the player, and play the teleport fx for a while, it looks... passable!
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Reverse death animation

Post by minmay »

The way particle systems in Grimrock are structured, you actually can reverse them by setting the timescale to a negative number with GameMode.setTimeMultiplier(). Time will appear to rewind for particles until they reach the time they were first emitted. After that, their behaviour becomes very strange.

Needless to say, setting the time multiplier to -1 screws up all manner of other things, like animations and general gameplay, so this isn't practical to actually use in a mod, but it's a funny thing to play with for a minute or two.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply