RPG Maker Forums

hi why i have error on my timeout when i call my object
$gameVariables.Hud_Option.Move(); ??
am try set timer after stuff will call method DeletePicture()
Uncaught TypeError: undefined is not a functionANFT_Hud_option.js:129 (anonymous function)
have object in example
Code:
$gameVariables.Hud_Option{
this.Timer1 = null; //Timer container

// Function remove picture
this.DeletePicture = function(){
        for (var d=this.Pid;d<this.EndPid;d++){
            $gameScreen._pictures[d] = null; }}


// The function with the timer
this.Move = function () {
// do stuff
//after stuff
this.Timer1 = setTimeout(function(){ this.DeletePicture() }, 3000);
}
}

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top