[Free] DiceRoll Dice Roller extension to roll a dice and fire event with the number

🧩 DiceRoll

An extension for MIT App Inventor 2.
developed by th using Fast.
Realistic Dice Roller extension to roll a dice and fire event with the number.
Telegram | GitHub
Blogger | YouTube
Find More Extension
Terms & Conditions

:memo: Specifications


:package: Package: io.th.diceroll.diceroll
:floppy_disk: Size: 10.88 KB
:gear: Version: 1.1
:iphone: Minimum API Level: 7
:date: Updated On: 2025-04-21T18:30:00Z
:computer: Built & documented using: FAST v2.8.4
:arrow_down:io.th.diceroll.diceroll.aix (10.9 KB)
:arrow_down:dice_roll.aia (13.3 KB)
:placard:Find apk and more info on GitHub

Demo

blocks



Blocks

DiceRolled_Event


Initialize_Method
RollDice_Method


DiceSize_Get_Property
DiceDotsColor_Set_Property
DiceDotsColor_Get_Property
DiceBodyColor_Set_Property
DiceBodyColor_Get_Property
CornerRadius_Set_Property
CornerRadius_Get_Property
DiceSize_Set_Property

Event:

DiceRoll has total 1 event.

DiceRolled

Event triggered after rolling the dice. Returns a number between 1 and 6.

Parameter Type
number number

Methods:

DiceRoll has total 2 methods.

Initialize

Initialize inside an arrangement.

Parameter Type
arrangement component

RollDice

Rolls the dice and fires the DiceRolled event with a number from 1 to 6.

Setters:

DiceRoll has total 4 setter properties.

DiceBodyColor

Set the color of the dice body.

  • Input type: number

DiceDotsColor

Set the color of the dice dots.

  • Input type: number

DiceSize

Set the size of the dice (in pixels).

  • Input type: number

CornerRadius

Set the corner radius of the dice (0 for sharp corners).

  • Input type: number

Getters:

DiceRoll has total 4 getter properties.

DiceBodyColor

Set the color of the dice body.

  • Return type: number

DiceDotsColor

Set the color of the dice dots.

  • Return type: number

DiceSize

Set the size of the dice (in pixels).

  • Return type: number

CornerRadius

Set the corner radius of the dice (0 for sharp corners).

  • Return type: number

Thanks

TechHamara

Fill free to contact us any quarry or Suggestions.

2 Likes

@TechHamara Do different dice sizes have different UI like a 20 sided dice would look like a D20 and a 8 sided would look like an D8.