–4 votes

Hi I am looking for a way to create a character selector, do you know how can I do that, i cant solve it, thanks

in Engine by (91 points)

You may want to start by telling us more precisely what your problem is. Also what is your character selector supposed to look like?
If you just want any character selector then you could simply create a scene with four buttons with the names of the characters on it.

1 Answer

+1 vote
Best answer

Probably the best way to do this would be a state machine. A node would record use of the left or right arrow keys to increment or decrement variable. This variable would define what character is selected. A display could toggle between different textures to show which character is active. Then, all you have to do is pop that same variable into your sceneLoad.gd (or whatever you've named it) and fire up another node to pull a new character based on that value. Really simple actually. If you would like, i can make a demo for you next week, but i'd rather not. :/

Hope this works out for you-

--vincent

by (69 points)
selected by

thanks, that is really helpful, I can do that :D

Can you made the demo for me, please?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.