• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

UWP I want to make a small little app game, but don't know how.

heckleJack

Member
Hi this is my first post so, bare with me.

I want to make a character generator. For artist who feel like drawing, but don't know what to draw.

At the push of a button, you get 5 words to describe your character.

Setting:

Hight:

Wight:

appearance:

Personality:

In case they want more variety, there is an alternate version in the options menu.

Body type:

Aesthetic:

Vibe:

Occupation:
 

Alexx

Member
Sounds pretty simple.
For each description you would need a list of all possible variants.
Then just choose one at random.
Initially I would suggest looking up ds_lists or arrays.
 

Alexx

Member
Look it up on google I assume?
Yes, or the manual: ds_list_create ds_list_add
For example, as a starting point:
GML:
setting=ds_list_create();
ds_list_add(setting,"woods","beach")
job=ds_list_create();
ds_list_add(job,"Teacher","Engineer")
You'll then need to choose one option from each and display it. Have a go yourself, but if you need any more help, let me know.
 
Last edited:

heckleJack

Member
Yes, or the manual: ds_list_create ds_list_add
For example, as a starting point:
GML:
setting=ds_list_create();
ds_list_add(setting,"woods","beach")
job=ds_list_create();
ds_list_add(job,"Teacher","Engineer")
You'll then need to choose one option from each and display it. Have a go yourself, but if you need any more help, let me know.
So should it look something like this?IMG_0135.jpg
 

Alexx

Member
Good effort.
Try this:
Create Event:
GML:
/// @description Set Up
setting=ds_list_create();
ds_list_add(setting,"woods","beach","mountain");
job=ds_list_create();
ds_list_add(job,"Teacher","Engineer","Cleaner");
_setting="";
_job="";
Draw Event:
GML:
/// @description Draw
draw_set_color(c_black);
draw_text(100,100,"Setting: "+_setting);
draw_text(100,200,"Job: "+_job);
Spacebar Press Event:
GML:
/// @description Get Random Values
_setting=ds_list_find_value(setting,irandom(ds_list_size(setting)-1));
_job=ds_list_find_value(job,irandom(ds_list_size(job)-1));
 
Top