- Joined
- Jun 20, 2017
- Messages
- 8
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- RMMV
So, I've been watching SoulPour777's Sprite Button tutorial: .
I am using this as a basis for writing a script which enables sprite button commands in the battle scene (intended for touch screen), and removing the default windowed command system.
At first: everything was going great! I had the actorCommandWindow removed and my three sprite buttons were on screen and positioned, ready to assign functions to them.
I was having trouble finding a solution to scripting the buttons to forceaction actor skill(x). Here's what I was trying:
Scene_Battle.commandHighAttack = function(){
BattleManager.ForceAction.actor.$dataSkills[1]
};
Result: I would get an error along the lines of 'Error [something, something] bind undefined'
when pressing F8 for further detail it kept redirecting me to this line within my Sprite button:
this._AttackButton1.setClickHandler(this.commandHighAttack.bind(this));
I cannot reenact this error or provide any more details as shortly after this: my plugin suddenly stopped making any changes to my project!
Details: https://forums.rpgmakerweb.com/index.php?threads/script-changes-not-showing-up-in-my-project.80474/
Help to either of my problems would be much appreciated!!!! ^_^
I am using this as a basis for writing a script which enables sprite button commands in the battle scene (intended for touch screen), and removing the default windowed command system.
At first: everything was going great! I had the actorCommandWindow removed and my three sprite buttons were on screen and positioned, ready to assign functions to them.
I was having trouble finding a solution to scripting the buttons to forceaction actor skill(x). Here's what I was trying:
Scene_Battle.commandHighAttack = function(){
BattleManager.ForceAction.actor.$dataSkills[1]
};
Result: I would get an error along the lines of 'Error [something, something] bind undefined'
when pressing F8 for further detail it kept redirecting me to this line within my Sprite button:
this._AttackButton1.setClickHandler(this.commandHighAttack.bind(this));
I cannot reenact this error or provide any more details as shortly after this: my plugin suddenly stopped making any changes to my project!
Details: https://forums.rpgmakerweb.com/index.php?threads/script-changes-not-showing-up-in-my-project.80474/
Help to either of my problems would be much appreciated!!!! ^_^


