- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
So I am trying to do a small TouchInput check.
What I did is something like this:
Scene_Title.prototype.updateTouchX = function() {
if (TouchInput.x >= Graphics.boxWidth - 20 || TouchInput.y >= Graphics.height - 20) {
// function here
} else {
// function here
}
}
Thing is, it does check what I want correctly and properly, however, my only gripe is that it ONLY checks it when I click the mouse. Is there a way to check the mouse's x and y without clicking? I mean a way to check the current, real time x and y of the mouse as is without clicking it?
What I did is something like this:
Scene_Title.prototype.updateTouchX = function() {
if (TouchInput.x >= Graphics.boxWidth - 20 || TouchInput.y >= Graphics.height - 20) {
// function here
} else {
// function here
}
}
Thing is, it does check what I want correctly and properly, however, my only gripe is that it ONLY checks it when I click the mouse. Is there a way to check the mouse's x and y without clicking? I mean a way to check the current, real time x and y of the mouse as is without clicking it?
