if $scene.is_a?(Scene_Title)
# code
end
array.push(object)
array[0] = object
def is_a?(class)
return self.class == class
end
unshift
Adds the given element(s) to the beginning of the array.
Code:a = [] => [] a.unshift "a" => ["a"] a.unshift "b", "c", "d" => ["b", "c", "d", "a"]
insert
Inserts the given element(s) in the given position.
Code:a = [] => [] a.insert 1, "a" => [nil, "a"] a.insert 0, "b", "c", "d" => ["b", "c", "d", nil, "a"]
Please correct me if i´m wrong, i´m in a hurry now ^^
SephirothSpawn said:.is_a? Returns true of false when comparing an objects class
Code:def is_a?(class) return self.class == class end
The actuall mathod probably looks similar to that. it simply checks to see if an objects class is whatever.
So I really have no idea what you are talking about with arrays...
$window.is_a?(Window_Message)