The Dink Network

I need a brain!

July 16th 2008, 05:39 AM
dinkdead.gif
I'm trying to make a sprite move straight and diagonally, like brain 16 but without stopping. There doesn't seem to be one like that so I've made my own by using brain 6 and a script to make it run about and randomly change direction, but I can't work out a way to stop it running off screen without doing something ridiculously complicated. Any ideas?

Edit (30 seconds later): Maybe I could switch to and fro between brains 9 and 10... that would work. Unless someone has a better idea before I get around to testing?

Edit2: Tested and it works well enough
July 16th 2008, 05:52 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Place a bunch of sprites (tables) round the edge of the screen and make the moving dude avoid them? Or is that ridiculously complicated?

Haha, just kidding. But, I didn't think sprites run off screen? Don't they hit the edge and bounce back in the opposite direction? Or is that just brain 16?
July 16th 2008, 07:02 AM
dinkdead.gif
Blockers and hardness is no good because it's not for a cutscene so you still need to walk there!

And yes they do normally but not when controlled with move().
July 16th 2008, 07:15 AM
pillbug.gif
dinkinfreak
Peasant He/Him Greece
Real lurkers don't appear on the lurkers list. 
There's set_smooth_follow( <0 or 1> ) , that lets followers use all directions.