obj/Ball
icon='ball.dmi'
Bump()
loc=locate(x,y+1,z)
the ball dosnt go up one space n e 1 know why
ID:266511
Mar 27 2002, 3:38 pm
|
|
Mar 27 2002, 3:45 pm
|
|
The obj needs to be dense and you need to define who's x,y,z values they are going up by.
|
The ball doesn't Bump() the mob, the mob Bump()s the ball:
mob |
In response to Nadrew
|
|
it says A.Move isnt a Proc?
|
In response to Strange Kidd
|
|
Strange Kidd wrote:
it says A.Move isnt a Proc? mob (I renamed the argument to Obstacle because that is what the reference uses.) Move is not available for atoms. Move is available for atom/movable. obj and mob are atom/movable. You need to make a cast. A cast will allow you to treat the atom as if it is something else. In this example, I cast Obstacle as an atom/movable named A. (I could have just used obj and it might have been less confusing. However, atom/movable is where obj gets its Move() proc from.) |
In response to Strange Kidd
|
|
Sorry my fault I forgot Move isn't an atom proc. Change "atom/A" to "obj/A".
|
In response to Nadrew
|
|
Is it possible to make a turn where mobs can get passed but objs cant
|