User interface questions

Get help using Construct 2

Post » Fri Sep 20, 2013 8:21 am

I'm not sure how to ask this.

One may involve nations or regions on a world map. I comprehend that I'll need a picked variable. But the user interface must be able to display the variables of the nation or region on the world map. How would I best do this? And how would I best store the variables of the nations or regions on the world map?
B
9
S
3
G
1
Posts: 191
Reputation: 1,725

Post » Fri Sep 20, 2013 8:45 am

I don't understand what you are trying to do, but I guess at what you are doing, then I would use a big world map and make the regions image points. Then store image points numbers as variables.

Sorry, I don't understand exactly what you are trying to do. I'm sure someone smarter than me will give some good advice.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Fri Sep 20, 2013 8:50 am

Have regions as separate sprites, put each sprite in 'regions' family that has all the necessary variables. Now all of your regions can be separated by on touch event for example, and have the same set of variables. If I understood correctly what you are going for. :)
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Fri Sep 20, 2013 9:15 am

Or have one big sprite as a map, and put Image points at each region location. You could then spawn text at the locations containing the variables.

Edit:
If you are needing to read clicks of them, I would spawn invisible markers (or the blank text boxes themselves) at each Image point and set it's instance variable so I could read which was selected.
They would be player chosen by picking the nearest marker to the player touch or click.

actually now that I think about it, you could just see which image point was closest to the click...Paradox2013-09-20 09:21:44
B
226
S
60
G
33
Posts: 902
Reputation: 39,989

Post » Sat Sep 21, 2013 12:24 am

Thanks.
B
9
S
3
G
1
Posts: 191
Reputation: 1,725


Return to How do I....?

Who is online

Users browsing this forum: zsoldiers and 6 guests