The Dink Network

Reply to Re: Windemere variable thing

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:
 
 
June 20th 2005, 04:30 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Well, the Dink engine is capable of running more than one script at the same time. If you have two sprites with the same script attached and you'll let them say something (so they'll both do it), both sprites talk so &current_sprite works like it should. Same thing when spawn()-ing a script, it'll run simultaneously as the script it was spawned from. Like you can see in redink1's Savegame Editor; a variable has a variable-name but also a scope: the scope is either 0 meaning a global variable or the number of the script that uses it. Same thing applies to the global ones I think. I haven't tested a script that fires two arrows when Dink fires (you'd also have to set the same distance to both target sprites and so on) but I don't think it'll cause trouble for the variables involved.. but it would have to be tested to be sure.