Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

How do you rotate items with a Xbox controller also how do you apply states that change the case size?


** Also as a side note the items in this plugin don't seem to be recognized in your battle on map plugin

Deleted 25 days ago

Hey bro, how's it going?

So, I made the updates; in the parameters, there's now a space for mapping functions like rotate in the controller.

I also added a plugin command to customize the size and background image of each case separately.

I created a script that updates inventory changes that happen both inside and outside the plugin.

I believe this addresses the observations you mentioned.
Could you download the js file again and test it?

Thank you for all the suggestions and support.

Amazing work and fast bro,am very impressed! This plugin is working great now and the items in this are now working on your Battle On Map Plugin. Question though,how do you find out the numbers for the gamepad buttons?

(1 edit)

Hey bro, thanks, I'm happy to help and I appreciate the feedback.

I haven't tested it on an Xbox controller, so I can't say for sure, but following basic mapping logic, it should be something like this.

Input.gamepadMapper = {

    0: "ok", // A

    1: "cancel", // B

    2: "shift", // X

    3: "menu", // Y

    4: "pageup", // LB

    5: "pagedown", // RB

    12: "up", // D-pad up

    13: "down", // D-pad down

    14: "left", // D-pad left

    15: "right" // D-pad right

};

Thanks for the guide! 

I have a question though about if this is a bug or not but when I assign shift (X) on controller for rotation on the move command on the case scene it works great however,I can no longer use that button when walking around to dash because it doesn't register anymore

I hadn't thought of that; it seems to be an overlapping conflict. The key you mapped in my plugin is overwriting the game's original mapping that makes the character run. I believe it's possible to isolate the mapping so that when you open the menu, when you exit, the mapping would revert to the previous one and there wouldn't be any conflicts. I'll test if this works between today and tomorrow and get back to you.