ID:266511
 
obj/Ball
icon='ball.dmi'
Bump()
loc=locate(x,y+1,z)




the ball dosnt go up one space n e 1 know why
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
Bump(atom/A)
if(istype(A,/obj/ball))
A.Move(locate(x,y+1,z))

obj/ball
icon = 'ball.dmi'
density = 1
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
Bump(atom/Obstacle)
if(istype(Obstacle,/obj/ball))
var/atom/movable/A = Obstacle
A.Move(locate(x,y+1,z))


(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