Forum rules - please read before posting.

Let the player chose their name

Hello guys !
Im really new ton AC !
first thing, i like it !

I have an issue when i want to enter the player name, nothing happens, i follow step by step the text tutorial, many times,
but nothing happen, i surely do something wrong, but i can't figure it out... if you guys have somes clues, would be awesome !
here is a screenshot of my action list
https://i.imgur.com/UmkOORv.png

Comments

  • edited November 2020

    Welcome to the community, @Ovgodd.

    You have two Menu: Change state Actions in sequence - one turns the PlayerName menu off, and another turns it back on immediately after. Delete the last Action if you want it to remain off.

    Your ActionList is set to update the value of your "Player name" Global variable. You can check that this is being set by opening the Variables Manager at runtime, and then check Show runtime values? at the top. If you look for your "Player name" variable, it should then show its value become updated when the ActionList is run.

    If it's not, when is this ActionList run, and are the Menu / Element names in your Variable: Set Action correct?

  • Hey, thanx a lot for your reply,
    I check everything and it seems that its ok, i surely not understand something, here the another screenshot

    https://i.imgur.com/Y3ijReQ.png - https://i.imgur.com/EFl6MoN.png
    cant write a name again,

    And other thing i try to do, is to have the playerMenu right after the title menu after pressing "nouvelle partie" on the screen shot, i follow the same step of the title creation, i turn on the"playerMenu" in the "EXit sub menu" action, https://i.imgur.com/FunB0LE.png - https://i.imgur.com/orYygN9.png
    like the pause menu etc. ( pause menu work well when i press echap ). the menu is not lock, he is unlock in the "begin new game" action list, and i don't want it to come again with pause menu.
    if you have an idea, i take it !
    Thanx again for your time.

    Cyril.

  • Name issue

    Have you removed the last Action from the "Store Player Name" ActionList as I suggested?

    What is the state of the "Player name" variables once this ActionList has been run, and are you getting any relevant messages in the Console? Does the Menu at least turn off now?

    Menu issue

    I take it you're following this tutorial?

    Looks like there's an error in the last screenshot - the "Exit sub menu" ActionList should look like this:

    https://imgur.com/a/EuMcEwU

    To lock a Menu, use the Menu: Change state Action and set the Change type to Lock Menu. Once a Menu is locked, calls to turn it on will be ignored until you unlock it again.

  • edited November 2020

    Hey ! thanx again for your time, yes i remove the last action !

    https://i.imgur.com/mvTX2OR.png

    i have this console message on the screenshot but i think its not revelant for the playerName issue ( or maybe im wrong ! )
    here is a screenshot on run time, in the variable menu with show runtimes values checked

    https://i.imgur.com/vchBS56.png

    And yes ! when i click on "ok" the playerName menu does turn off ! so thats one is ok ahha !
    i see nothing happen in the variable manager when i try to change name, in the actionList editor, i always have Variable:Set / Global etc

  • All looks OK, then. Though, I'm not seeing an example of the variable not changing. Your screenshot shows "Player" both in the Input box, and as the Variable value.

    It looks like you have a simple scene "Interface" to test this. If you create a .unitypackage file of this scene, your 8 Manager asset files, and the Menu ActionList asset files being used here, you can PM it to me and I will take a look myself.

  • Ok ! i just send you a PM ! ;)

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.