Hi!
I want to create the following behaviour:
The idea is allowing the user to browse the available interactions using two buttons.
I have already created a new Active Input using the Action Inputs Editor and created a new one named "InteractionC (Button)" and I have already created a new action list to be triggered but I don't know what actions to execute there to cycle the interactions backwards.
Could you give me some clues?
Thanks in advance!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
An Active Input shouldn't be necessary, depending on your settings. Check the "Available inputs" panel in the Settings Manager - are CycleInteractionsLeft / CycleInteractionsRight listed? If so, mapping inputs to these names should allow for this.
If not, share your Interface settings so that I can see how your game is controlled.
Hi Chris!
Thank you for your quick answer!
Here's a picture of my available inputs:
And my Interface Settings:
Thank you again!
What is your AC version? "CycleCursorsBack" should be listed as an available input.
My AC version is 1.70.2.
Is there a way I could manually add it?
I've been doing a quick research and I've found that, on the
SettingsManager
class I had:I've added
result = SmartAddInput (result, "CycleCursorsBack (Button)");
there like this:And now I see
CycleCursorsBack
listed on the Available inputs:I guess that this should do the trick, isn't it?
Thank you!
Answering myself, yes and no.
That step is needed but I'm missing something else, I'm researching more and I will post here my findings.
So finally I have it working.
In
PlayerCursor.cs
I had:And I have added an
else if
for the newCycleCursorsBack
action:I have also created a new
CycleCursorsBack ()
function taking the existingCycleCursors ()
as model:And now everything is working as I wanted
I have to say that I had to go over all this process because I can't update to a newer AC version, so it's my fault.
Also I have to say that I've been able to implement all this by myself because the Adventure Creator code is very straightforward and easy to understand!
Thanks a lot for your help and for making such a wonderful asset, Chris!