Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

GetVariable in Scripting

Status
Not open for further replies.

Khayalan

Towns Guard
Xy$
0.00
Hey RPGMakers ^^

ive got a script for let sliding in a Button ^^

this.wait(1);

var buttonID = $gameVariables.Value(15);
var button_x = $gameSystem.mapButtonX(buttonID);
var new_x = $gameSystem.mapButtonX(buttonID) - 4;
$gameSystem.setMapButtonX(buttonID, new_x);
$gameSystem.setMapButtonVisible(buttonID, true);

but this var buttonID = $gameVariables.Value(15); dont work...
$gameVariables.Value(15) should be the Value of the Variable with ID 15,
how is it right ?

Sorry for bad english ^^

-Khayalan
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Closing thread due to being addressed & solved, if for any reason you would like it re-opened please report the post or contact a moderator.
 
Status
Not open for further replies.
Top