# Choice dialog commands

## Create Game Object Instance

```markdown

CHOICE
  id=NAME
  width=0
  height=0
  vpx=0.5
  vpy=0.5
  vpw=
  vph=

```

Create ConfirmDialog as Choice dailog game object

## Destroy game object

```markdown

NAME.destroy

```

## Set properties

```markdown

NAME.set
  x=
  vpx=
  y=
  vpy=
  alpha=
  duration=1000
  ease=Linear
  repeat=0
  wait=

```

## Ease properties

```markdown

NAME.to
  x=
  vpx=
  y=
  vpy=
  alpha=
  duration=1000
  ease=Linear
  repeat=0
  wait=

```

or

```markdown

NAME.yoyo
  x=
  vpx=
  y=
  vpy=
  alpha=
  duration=1000
  ease=Linear
  repeat=0
  wait=

```

## Call methods

### Choice

```markdown

NAME.choice
  title=
  content=
  option1=
  option2=
  option3=
  resultKey=choiceIndex

```

- If click button1 (option1), resultKey( choiceIndex) will set to `1`
- If click button2 (option2), resultKey( choiceIndex) will set to `2`
- If click button3 (option3), resultKey( choiceIndex) will set to `3`

### Shake

```markdown

NAME.shake
  duration=
  magnitude=
  wait=true

```
