Gamestudio Links
Zorro Links
Newest Posts
Alternative to Stooq for Zorro S
by Petra. 10/14/26 07:04
ZorroGPT
by TipmyPip. 10/13/26 17:08
Stooq now requires an API key
by cwford. 10/08/26 23:27
Purchase A8 full licence version
by jcl. 10/05/26 12:12
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 24,972 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
circle move - circular motion #379650
08/05/11 17:16
08/05/11 17:16
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
Hi,

Im trying to do a circle move. (like tarzan with a liana) or.. like.. .. dunno.

i know do horizontal/vertical movement like player.x+=2; or player.y+=2;

but how to do a fluid circular movement ?
If there an equation or anything ?
Does anyone have any tip for it ?

thanks

Re: circle move - circular motion [Re: ayks] #379651
08/05/11 17:35
08/05/11 17:35

M
Malice
Unregistered
Malice
Unregistered
M



Take a look at this post I had I bit ago. LINK

Use a scan to get at target entity for the circle center.

Last edited by Malice; 08/05/11 17:36.
Re: circle move - circular motion [Re: ] #379655
08/05/11 18:26
08/05/11 18:26
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
thanks i'll try it later

Re: circle move - circular motion [Re: ayks] #379881
08/09/11 10:56
08/09/11 10:56
Joined: Aug 2010
Posts: 26
J
JHA Offline
Newbie
JHA  Offline
Newbie
J

Joined: Aug 2010
Posts: 26
Hello
Circle's equation is

(x-x1)^2+(y-y1)^2=r, where

x1, y1 is center point of the circle and r is radius. Solve function as a function of x: y=f(x). Beware you are going to have a square root and you can get a negative into square root, so you have to check that.

Jarkko

Re: circle move - circular motion [Re: JHA] #380070
08/11/11 22:29
08/11/11 22:29
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
thanks jarkko i'll try it later too


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1