Soccer (Football) game selection & setting menu's

For questions about using Classic.

Post » Sat Nov 26, 2011 5:22 pm

I've made a simple soccer game with physics and pretty good AI and it works well... but that was the easy part, lol. However, I need to make some selection menus (without drop-downs or collision-based events). I've done menu's in Construct like the ones in the tutorial example thread many times before, but I want to do something a little different than those and I haven't been able to find an example that fits what I'm trying to do.

I could very easily put each selection on its own screen and just send it all to separate global variables and it would work fine, but I really want to keep the number of layouts slim.

I want to make 2 types of menus:

1. This first one is common to most video games. I'm trying to make each setting field move independently of each other. So for example, if I pick 1:00pm for my time of day, I'd be able to press the down arrow and pick Snow (or something else) for my weather and cycling through my weather choices wouldn't make my time of day choices cycle at the same time like it's erroneously doing in my .cap (see .cap below).

Then from there I'd be able to press down again and select my Game time (game time would be based on minutes like 1 minute, 5 minutes, 10 minutes, etc.), then press enter and go to the soccer field.

What my basic problem with #1 is: I can't seem to move up and down between settings fields and make only one field cycle at a time. Right now when I cycle through, all of my fields cycle at the same time.

My .cap: http://www.mediafire.com/?b3ner3cg78y8avm

2. The second menu is common too. It's a 2-sided team selection screen. Like this:

I want to have 4 teams that can be selected, with both sides being able to select only 1 of the 4 available teams. So on the right you'd be able to cycle through all 4 teams available and pick a team, press enter to select that team. Then on the left you'd be able to cycle through all 4 teams available, pick a team, press enter and then of course you'd go to the next layout.

Any would be greatly appreciated :)MrMiller2011-11-26 17:24:58
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Sun Nov 27, 2011 3:55 pm

You already know how to left/right. It's same for up/down. And you only have to add a control like, if weather choosen, than if pressed left or right do smth. If time choosen, than if pressed left or right do smth. Thats all.

Soccer
B
7
S
1
G
1
Posts: 76
Reputation: 904

Post » Thu Dec 01, 2011 3:47 pm

Thanks Spider_hip!

Your example showed me my misstep perfectly. I kept thinking I needed a deactivation of one of the variables rather than just having counter conditions inside the group like you showed. I'm not sure why I thought it needed to be different from the other group, I guess I was over-thinking things.

I'm going to post the events of #1 for sharing soon, and I just figured out #2 as well and will post those events too.

Thanks again!
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Sat Nov 10, 2012 4:21 pm

@MrMiller can you reupload the link?
B
9
Posts: 6
Reputation: 558

Post » Sat Nov 10, 2012 10:26 pm

^^^ here you go:

https://rapidshare.com/files/796653185/Select%20Teams.cap

https://rapidshare.com/files/3502070506/SettingsMenu.cap
B
12
S
4
G
3
Posts: 426
Reputation: 2,458


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests