- Home /
Question by
Rebel8909 · Sep 29, 2014 at 03:40 AM ·
javascriptint
Checking an objects script to change an int on another script
I was wondering how I would go about checking an objects script / coordinates so that way it would affect another scripts integers. This would be used with 21 different objects.
Something like:
Object.js:
var Cor : Position;
function Update(){
if(input(get.position) == Cor){
get.script("Correct.js")
intCor == +1
}
}
ObjectCheck.js:
var intCor : int = 0;
function Update() {
if(intCor = 21){
level.load(nextlevel)
}
}
How would I go about doing this?
Comment
Your answer

Follow this Question
Related Questions
script linking 1 Answer
problem at adding script 1 Answer
Accessing another var on another script 1 Answer
Update Parent/ Children From Script? 2 Answers