Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,094 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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