Reply to Re: stalkers and invisible walls
If you don't have an account, just leave the password field blank.
Another method would be to use a loop. E.g.
Keep in mind that's not a pixel-accurate method, since there's a short wait between each time it checks the coordinate.
If you added a script_attach(1000) there, the loop would survive screenchanges, and could be used for followers, to create the follower each time you change screens. I find using loops inherently deplorable, though, especially permanent ones, so I'd avoid it unless you absolutely need to.
Another method to create a follower would be to have a sprite/script on EVERY screen of the dmod (every one you want the follower on anyway), which then checks if the follower dude should be there. Adding a sprite on every screen is annoying, but less deplorable. The script could look like this:
VARÄRDINK: int &crappyx = sp_x(1,-1) if (&crappyx < 200) { //stuff you want to run here } wait(100) goto varärdink
Keep in mind that's not a pixel-accurate method, since there's a short wait between each time it checks the coordinate.
If you added a script_attach(1000) there, the loop would survive screenchanges, and could be used for followers, to create the follower each time you change screens. I find using loops inherently deplorable, though, especially permanent ones, so I'd avoid it unless you absolutely need to.

Another method to create a follower would be to have a sprite/script on EVERY screen of the dmod (every one you want the follower on anyway), which then checks if the follower dude should be there. Adding a sprite on every screen is annoying, but less deplorable. The script could look like this:
void main { if (&ISHOULDHAVEFOLLOWER == 0) sp_active(¤t_sprite,0) //otherwise, add follower's stats and stuff here, for example: sp_follow(¤t_sprite,1) set_smooth_follow(1) sp_brain(¤t_sprite,16) sp_speed(¤t_sprite,1) //wait(1) //^ might need this so that the follower doesn't appear on the wrong side of the screen, not sure //move follower to Dink int &dinkx = sp_x(1,-1) int &dinky = sp_y(1,-1) sp_x(¤t_sprite,&dinkx) sp_y(¤t_sprite,&dinky) }