UNPKG

phaser3-rex-plugins

Version:
109 lines (77 loc) 1.01 kB
# Name-input dialog commands ## Create Game Object Instance ``` NAMEINPUT id=NameInput width=0 height=0 vpx=0.5 vpy=0.5 vpw= vph= ``` Create Name-input dailog game object ## Destroy game object ``` NAME.destroy ``` ## Set properties ``` NAME.set x= vpx= y= vpy= alpha= duration=1000 ease=Linear repeat=0 wait= ``` ## Ease properties ``` NAME.to x= vpx= y= vpy= alpha= duration=1000 ease=Linear repeat=0 wait= ``` or ``` NAME.yoyo x= vpx= y= vpy= alpha= duration=1000 ease=Linear repeat=0 wait= ``` ## Call methods ### Name-input ``` NAME.input title= firstNameTitle= lastNameTitle= button= firstName= lastName= firstNameKey=firstName lastNameKey=lastName ``` - Store input to variable by key `firstNameKey` and `lastNameKey` ### Shake ``` NAME.shake duration= magnitude= wait=true ```