mob/verb
TransForm()
flick("GokuSSJ1",usr)
usr.icon='player.dmi'
usr.icon_state="GokuSSJ2"<dm>
ID:156302
Nov 14 2010, 11:23 am
|
|
im new to coding but when my guy transform is there a way so when my guy punches he dont use norm form punch?
|
Nov 14 2010, 11:25 am
|
|
Use switch() to check what form the player is in, then flick() a different icon state for the different punches.
|
In response to Warlord Fred
|
|
Thanks! Another Thing Is There A Way I Can Put A Block On The TransForm Buttons So You Can Only Clik It Once?
|
In response to Warlord Fred
|
|
Alternatively break it up into different icons, so regular_saiyan.dmi, SSJ.dmi, SSJ2.dmi and make them have the same named icon states for punching etc. Then when they transform, do icon = 'SSJ.dmi' and the rest of your code that flicks icon states can be pretty much the same for all transformations.
|
In response to Stephen001
|
|
Stephen001 wrote:
Alternatively break it up into different icons, so regular_saiyan.dmi, SSJ.dmi, SSJ2.dmi and make them have the same named icon states for punching etc. Then when they transform, do icon = 'SSJ.dmi' and the rest of your code that flicks icon states can be pretty much the same for all transformations. Thanks That Worked Do You Have A Way To Block The TransForm Button So You Can Only Click It Once? |
In response to UnFoundSoul
|
|
Just Wondering In This Code Is It Possible To Make It So I Can Go SSJ3 Then SSJ4?
//new code below |
In response to UnFoundSoul
|
|
Switch statement to check the person's icon?
switch(src.icon) I'm tired and didn't test this yet |