Jump to content


xXKiTheifXx

Member Since 11 Oct 2010
Offline Last Active Jun 19 2012 05:59 PM

Posts I've Made

In Topic: Volumetric Lighting for 2d games

15 May 2011 - 10:49 PM

I wonder how well this works with low res stuff.. and if it will be pixelated and amazing..

In Topic: Make 2D Topdown Sprite Looks 3D Tutorial UPDATED!

15 May 2011 - 10:18 PM

Wow :o
Thats awesome.

In Topic: Detecting the enemy and hurting it

03 April 2011 - 06:52 PM

enemy as an instance instead of every one of that object

Collision returns the instance id of the collided instance. So of course "other" returns the exact instance and that seems logical, because why do you want to hurt all enemies when you hit only one? If you really want to hurt all of them, then use something like this:
with (oEnemy){
eHealth-=1;
}


Oh sorry, I actually want to attack a single instance, not all of them :P
I think I may write up a script that detects the nearest instance of the enemy, and deals damage that way :|
Seems easy enough.