Random Person/Name Generator

Show us your completed creations made in Construct 2

Post » Wed Mar 23, 2016 4:23 am

Not a game. Thought this might be useful for those that need randomly generated names (for example: zombie survival game where you randomly find another person to add to your party; random name suggestions for characters, etc.)

I made this a while ago so a little rough looking and no frills added but serves its purpose as an example:
Preview: http://www.loubagel.com/RandomPeople/index.html
(click on sprites to see the randomly given names and location)

capx: https://www.dropbox.com/s/vkn2q2c8zfcl6 ... .capx?dl=0

In my example the XML Contains:
Top 100 male first names in US
Top 100 female first names in US (not used as I was too lazy to make female sprites)
Top 1000 last names in US
Most populous States cities in US (maybe top 250, can't remember)
I took these all from internet lists I found, copied into Excel and converted to an XML file.

Using random value between 1 and nodeCount it will randomly assign a name and location.

For those not familiar with XML you can take a look at the path expressions here and that's pretty much all you need to know to use with Construct:
http://www.w3schools.com/xsl/xpath_syntax.asp
(boo W3schools all you want but best explanation I've seen for beginners)

Let me know if I can clarify anything, any thoughts/ideas, or have any questions about it.

I've found XML very useful and an organized way to deal with a lot of aspects: lines of text for the story or that characters say, enemy stats, instructions at beginning of game, even calling Construct functions from it. Just saying this as if you have any other XML related questions feel free to ask me.

Hope some people find it useful!
ImageImageImage
B
39
S
22
G
11
Posts: 486
Reputation: 9,913

Post » Wed Mar 30, 2016 2:08 am

Thank you very much. It helped me quite a bit :)
Cheers.
B
36
S
4
G
5
Posts: 6
Reputation: 5,004


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 7 guests