The Dink Network

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.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 30th 2020, 10:32 PM
spike.gif
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)