Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to apply a force to a sprite?

Author
Message
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 16th Aug 2011 18:00
Hi,
I'm turning crazy trying to apply a simple force to a sprite..
All is setup ok as I've started with the example of restitution from AppGameKit, but I'm not capable of doing something more aplying forces to the balls...
somebody could help me please?
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 16th Aug 2011 18:02
SMS
19
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: United States
Posted: 2nd Dec 2011 07:18
I don't see that example as being one of applying a force to the sprite... rather just assigning a velocity to it.

Is there some place/command/example, where we could see how to apply a *force* to a sprite? (the velocity would be a result of the force over time)
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Dec 2011 10:20
Here's an example of how to add forces to sprites:


Login to post a reply

Server time is: 2024-11-22 15:28:18
Your offset time is: 2024-11-22 15:28:18