Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,008 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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