(AGK version: 2.0.14)
Submitted: 2015-06-29 02:26:22
hint:
StepPhysics must called after this function or force does not work.

//MR 28.06.2015
//agk v2.0.14b

spr=CreateSprite(0)
SetSpritePhysicsOn(spr,2)

do
	
	SetSpritePhysicsForce(spr,GetSpriteXByOffset(spr),GetSpriteYByOffset(spr),100,0)

	if GetPointerPressed() then exit
	
	//StepPhysics(0)
	StepPhysics(1.0/60.0)
	//StepPhysics(1.0/120.0)
	sync()

loop
end
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.