myObject = CreateSprite(0)
set(myObject, "x=100; y=200; alpha=150; width=100; height=50; angle=45")
//set(myObject, "visible=false")
function set(object as integer, agk_options$ )
agk_options$ = lower(ReplaceString(agk_options$, " ", "", -1))
for agk_i = 1 to CountStringTokens(agk_options$, ";")
agk_objectOptions$ = GetStringToken(agk_options$, ";", agk_i)
agk_variable$ = GetStringToken(agk_objectOptions$, "=", 1)
agk_value$ = GetStringToken(agk_objectOptions$, "=", 2)
if agk_value$ = "true" then agk_value$ = "1"
if agk_value$ = "false" then agk_value$ = "0"
select agk_variable$
case "x":
SetSpritePositionByOffset(object, ValFloat(agk_value$), GetSpriteYByOffset(object))
endcase
case "y":
SetSpritePositionByOffset(object, GetSpriteXByOffset(object), ValFloat(agk_value$) )
endcase
case "visible":
SetSpriteVisible(object, val(agk_value$))
endcase
case "alpha":
SetSpriteColorAlpha(object, val(agk_value$))
endcase
case "angle":
SetSpriteAngle(object, ValFloat(agk_value$))
endcase
case "width"
SetSpriteSize(object, ValFloat(agk_value$), GetSpriteHeight(object))
endcase
case "height"
SetSpriteSize(object, GetSpriteWidth(object), ValFloat(agk_value$))
endcase
endselect
next agk_i
endfunction
https://www.instagram.com/qugurun/