✨ General: Make skill compatible with Mouse and Gamepad

When playing some modern games, you'll notice that on a PC, you can aim using a mouse, while on a gamepad, you aim by rotating the right stick. How do we achieve this?

Making a game compatible with multiple platforms isn't a hard task, but it does require some effort. In this tutorial, I'll show you how to make a skill compatible with both devices.

Automatic Method


With this method, you don't need to do much work, when a gamepad is connected, it'll automatically switch to right-stick aiming.

Let's head back to tutorial 10 and 11, where you'd use rotateTo('cursor'), rotateTo('right stick') and moveToPosition('cursor') or moveToPosition('right stick')

Simply change them to rotateTo('mouse or gamepad'), similar to moveToPosition.

Manual Method

Why use this method? It's because sometimes you'd like to suffer.
Simply use conditional branch: checkGamepad or checkGamepadInput.
Then in true section, use moveToPosition('right stick')
In Else section, use moveToPosition('cursor')

checkGamepad will check if a gamepad is connected
checkGamepadInput will check the same thing but with additional condition witch is it'll also check if right stick is moving.
5 RPG Maker Action Combat Manual: ✨ General: Make skill compatible with Mouse and Gamepad When playing some modern games, you'll notice that on a PC, you can aim using a mouse, while on a gamepad, you aim by rotating the right...
< >