Hi, I'm working on a small 2D sidescroller game for a university project and this is my first time working with AC. I apologize if these questions have been answered already or if the solutions are obvious, but I've been looking for how to do this for some time and am starting to get a bit frustrated.
I have two questions:
1) How do I change the player character speed without writing custom code? I just want to increase the default speed, it does not have to change during runtime. My Movement method is Point and Click, Input Method is Mouse And Keyboard.
2) Is there a simple way of displaying the names of items in the inventory, when hovering over them?
I don't display Hotspot icons or labels when hovering over them in the game, and the inventory items have no interaction options (can only be drag and dropped onto the environment).
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @YooksT.
Look for the "Walk speed scale" and "Run speed scale" fields in the Player Inspector.
Are you looking to only show a label when over items, and not over Hotspots?
In order to display an Item's name when hovering, you need a Label element of the type "Hotspot". This will display the name of either the active Hotspot or Inventory item - whichever is currently being hovered over.
The default interface's Hotspot menu provides such a label - if you don't have it in your Menu Manager, you can assign the Default_MenuManager asset file in your Menu Manager tab, copy the Hotspot menu, and paste it back in your own Menu Manager.
Set things up such that you have Inventory item labels showing as you intend, and only then focus on removing the names of Hotspots when hovering over them. To do this, you have a couple of options:
1) A quick-and-dirty way would be to give each Hotspot's Label (if not name) field a single space (" ") character, so that they effectively have an "invisible" name.
2) Otherwise, you can look to lock the Hotpost menu when you're not accessing the inventory. If your Inventory menu only turns on when the player is accessing it, you can assign it ActionLists that run when it turns on/off, and give these ActionLists Menu: Change state Actions to unlock/lock your Hotspot menu respectively.
It would also be possible to script this behaviour, so that it's only visible when the pointer itself is over a given Menu. If that sounds like a better approach, please share details of the way your Inventory menu is set up (screenshots would be best) so that I can advise further.
Thank you for your reply!
2) I am using AC's default inventory system. I decided to go with your first suggestion, adding " " to hotspots in the environment. I'm working on a prototype that is supposed to show the main functionalities, so this solution is sufficient