[RMMV] HELP ME IN GAME I DOWNLOAD

Posts

Pages: 1
Hello anyone I download Game I find in this Game something is error I run test Game He said this codes is error How fix this error and thank you
This is codes Your text to link here...
error said " undefined is not a function"
Marrend
Guardian of the Description Thread
21781
What do the functions "TileSwap.swapByPosition" and "TileSwap.apply" do, exactly? Are those the functions that are undefined?

Aside from that, I believe there needs to be a "var" before the variables of "a", "b", "c", and so forth. Unless they are defined elsewhere above these sections that you're showing us? Also, the only time I'm seeing a semicolon at the end is at the end of the "a = ". They need to be at the end of each line of code (more or less), if I recall.

So, as an example, the first section might look something more like...

var a = ($gamePlayer.x).toString() + "." + ($gamePlayer.y).toString();
var b = $gameVariables.value(95).indexOf(a);
console.log(a + " - " + b + " - " + $gameVariables.value(95));

$gameVariables.value(95)[b+1] = 2
$gameVariables.value(95)[b+2] = 1
TileSwap.swapByPosition($gamePlayer.x, $gamePlayer.y, "E,2,1", 3);
TileSwap.apply();


...this.
Pages: 1