(AGK version: 2)
Submitted: 2017-12-11 01:47:57
//By Richard6 - Dec, 10, 2017

SetVirtualResolution(1024,768)

mysprite=CreateSprite(0)
SetSpritePosition(mysprite,300,300)
SetSpriteSize(mysprite,300,300)

my_tween = CreateTweenCustom(3)
SetTweenCustomInteger1(my_tween,GetSpritex(mysprite),GetSpriteX(mysprite)+300,0)

do
      
		PlayTweenCustom(my_tween,0.0)
		tween_value=GetTweenCustomInteger1(my_tween)
		SetSpriteScissor(mysprite,300,300,tween_value,600)       
                UpdateAllTweens(getframetime())
                sync()
loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.