Reply to Re: Script created Sprite that can be commanded from multiple other scripts
If you don't have an account, just leave the password field blank.
So like make &dude a global variable in MAIN?
Yep. In main.c do:
make_global_int("&dude",0)
Them in the script where you create the dude:
&dude = create_sprite(blah blah blah)
Then in the bookshelf script when you want to move the dude, you just move &dude:
move_stop(&dude, blah blah blah)
Im using Also windinkedit plus 2 and it wont save properly? I put a Sprite down and then save, exit, load back up and proof it's gone.
Can't help you there. (I'm a Dinkedit purist if anything. =)) What operating system are you using, and where is Dink located? (It could be a permission error, where Windikedit isn't allowed to save changes to files in the Dink folder)
Yep. In main.c do:
make_global_int("&dude",0)
Them in the script where you create the dude:
&dude = create_sprite(blah blah blah)
Then in the bookshelf script when you want to move the dude, you just move &dude:
move_stop(&dude, blah blah blah)
Im using Also windinkedit plus 2 and it wont save properly? I put a Sprite down and then save, exit, load back up and proof it's gone.
Can't help you there. (I'm a Dinkedit purist if anything. =)) What operating system are you using, and where is Dink located? (It could be a permission error, where Windikedit isn't allowed to save changes to files in the Dink folder)