Posted 31 May 2012 - 06:51 AM
I'm attempting to create an effect in my shoot em up game where when an enemy ship is destroyed (or player), a surface is programmed to create a motion blur moving away from where the explosion is. The best example of this being used elsewhere is the game Ad Nauseam 2 .
This is the code I'm playing with:
Object named Surfaces_OBJ
CREATE EVENT - blurstart is the variable that goes off when there's a collision between a bullet and an enemy ship, this would be changed to when the enemy ship explodes
STEP EVENT - Testing if the enemy ship has been hit
END STEP - I've just been playing with code to try out a motion blur. Nothing successful so far. The // parts are other things that I've tried. You can toggle them appropriately.
ROOM END - Freeing the surface
DRAW - Drawing the surface
If you've made it this far I really appreciate it. Could someone assist me in finding other surfaces techniques to achieve this effect?
Posted 03 June 2012 - 08:23 PM
Posted 03 June 2012 - 08:39 PM
I've never done this myself, but what I suspected (and googling around) concludes, that the best method is to draw to the surface, then scale down, then scale back up, making sure texture_set_interpolation() is true.
Probably something best done 'before hand' in the sprite editor, tbh. :/
Posted 04 June 2012 - 10:38 PM
I've been having a problem with my copy of studio as of recent, but as soon as I get that back up I'll try those out.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users