Announcement

Collapse
No announcement yet.

Question regarding UMG Buttons.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Question regarding UMG Buttons.

    Greetings,

    I've been working on a small Dice-Rolling app for mobile phones, and I have what I hope is a question that can be easily answered. Essentially I have 6 UMG buttons (displayed as images of dice) that appear on the screen. When the user clicks(taps) the button, it changes was type of dice will be spawned when they click(tap) on the screen.

    The problem I've encountered is that after the user has selected a dice type by pressing on one of the buttons, when they go to press on another button a dice of the previously selected type spawns (so it's essentially going 'spawn dice at hit position -> change dice type'). Is there a way to change the button interaction so it blocks out all other interactions except for the 'on clicked' event specific to that button?

    Click image for larger version

Name:	Dice1.jpg
Views:	1
Size:	19.7 KB
ID:	1145497
    Screenshot 1: Game starts.


    Click image for larger version

Name:	Dice2.jpg
Views:	1
Size:	26.3 KB
ID:	1145498
    Screenshot 2: User selects "Six Sided Dice" and spawns a couple.


    Click image for larger version

Name:	Dice3.jpg
Views:	1
Size:	28.6 KB
ID:	1145499
    Screenshot 3: User then selects "Twenty Sided Dice", but a Six Sided Dice also spawns underneath the Twenty Sided button.

    I hope that makes enough sense!
Working...
X