Hi everyone,
can you please explain me how to change while playing the value of a variable of a plugin like this:
var numberOne
is it possible?
Variable values can be changed through events though, which is in-game... Sorta confused by your question. You mentioned plugins. Plugin params can't be changed in-game unless there's some sort of script call / plugin command that allows it.
No, they can't be changed in-game. Does this plugin have script calls for that? Anyways, you can make a function in the plugin that can be called from within the game to change the values.
Sorry I can't quite code 🙁 Not yet, at least. This looked fairly easy at first. I made it so that there's a plugin parameter where you can enter a variable Id and just change the value of that variable in-game to change the shift. But it changed the center for the camera permanently. You'll have to rely on an experienced scripter for this. Let's hope someone sees this thread and decides to help.
Both the QCamera and the Camera Core from SmRndmDde have plugin commands to shift the camera a number of map tiles in any direction...I don't know of one that has a plugin command to adjust the camera by mere pixels.
Please post a link to the plugin so we can take a look ourselves.
those variables cant be changed directly unless you modified it.
those variables are mostly to create the scene, remove those, and it will break the plugin.
you need to know what your doing.
sometimes you can manupulate its functions: for example:
gamePlayer.prototype.switches = function(id, stat)
remember this isn't a real function, but you can use than,
gamePlayer.switches(id, stat) id of switch, true/false for example.
just remember this is NOT always possible depending how the plugin is written.
use teh params, or use the ingame camera to shift if you want too., which is
easier to manipulate than a plugin if you want to shift it.