attraction between objects

is there a way to make one object be attracted to another object or a point? For example if I wanted an enemy to chase the player or if I wanted to attract all of the objects to the center of the screen.

Look at ‘Dungeon Roller’ Example Project

If you mean using gravity and physics objects, then no. If it’s a sprite attracted to another, then you have to write your own routines.

ok thanks @CodeaNoob @dave1707

@Joey72099 See the code I just added to the 50 line challenge discussion.

@Joey72099 - or here

http://coolcodea.wordpress.com/2013/10/20/127-physics-adding-friction-and-drag/

@Joey72099 try looking up mob movement. Might include something helpful to you

I did a quick little homing missile demo.

https://gist.github.com/briarfox/8bfacd2d02b3a25e72fd