Forum rules - please read before posting.

Changing text through actionlist

Hi,

I have looked through the manual and can't seem to find how to do this, and wondered if you could help?

I need the player to input a six digit number, where each number is a 'text' object within a canvas object.

I would like the player to be able to click on a hotspot and be able to increase he text number by one, and once the correct combination of six numbers is reached, a cutscene is run (ie 375294 starting from 000000)

How would I go about doing this?

Thanks!

Comments

  • The bulk of this work would be done in a custom script, that both stores the combination number and updates the UI Text objects accordingly.  This is not AC-specific, and you should ask this on the Unity forums instead.

    To link to a Hotspot, you can use the Object: Send message Action as part of your Hotspot's Interaction.  Let's say your script has a function named "IncreaseByOne", that increases the number by one and updates the Texts.  You can use the Object: Send message Action to call this function - but again, the script itself is not AC-related.
  • OK thank you, I will try on the unity forums - I guess I could also do this using variables like the sequence puzzle you helped me with, and i could have images of the numbers instead of actual text objects? It would be a bit more fiddly than using a script, but my coding skills are not great

    thanks 
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.