ID:163179
![]() Sep 30 2007, 2:41 pm
|
|
Is there a way I can use bump on an object and if not is there another way to make something happen when you go in contact with it?
|
Can you tell me why this doesn't work?
obj |
obj |
Cause I copy pasted it from my enemies code. took out the attack and the move towards usr. I just forgot that.
btw removing that still doesn't make it work |
step_rand() doesn't count dense areas as areas it can step to, meaning it doesn't attempt to.
step() does, however. |
As you can tell, when a movable object attempts to move, and something stops it from doing this, it will call the Bump() procedure with the argument as the object that stopped them from moving.
A common use is:
Using the Bumped() procedure, any object can have their own action when they're bumped.