How do I create a simple BG toggle button?

Get help using Construct 2

Post » Thu Aug 17, 2017 1:50 pm

Is there a simple way to create a button that opens a mini-menu of game background options a player can choose from? Think of it as a button that allows users to select a background scene from four seasons (winter, spring, summer, fall).

When clicked, I would like the button to:
  • Display a small sample of other clickable backgrounds.
  • The user would then click from the sample background options to make that background active.
  • Backgrounds would not interact with any other sprites.
Has anyone put together something like this? If so, I could sure use your help. I'm a newb to Construct 2.

Also, if it's easier, the button could simply cycle through all possible backgrounds (in-position, at 100%).

Thanks in advance.
B
4
S
1
Posts: 2
Reputation: 304

Post » Fri Aug 18, 2017 8:49 am

Seems fairly simple. Create a button that opens a new layer, or makes one visible on top of the game. Display the selectable background icons and then have logic on the event sheet such as if backgroundA is clicked, set the background to a frame that corresponds to backgroundA, if backgroundB is clicked, set the backgroundB to the next frame etc.
B
47
S
17
G
82
Posts: 2,231
Reputation: 48,609

Post » Fri Aug 18, 2017 3:04 pm

Thanks, plinkie! I'll give it a shot right now and let you know how it goes.
B
4
S
1
Posts: 2
Reputation: 304


Return to How do I....?

Who is online

Users browsing this forum: tannerdler and 23 guests