Page 2 of 5

Re: Counting a circle path

PostPosted: Fri Dec 28, 2007 9:25 am
by Bee-Ant
I found, you could make that CIRCLE movement with put this code in DrawActor
Code: Select all
angle+=10;
directional_velocity=10;

Ummm...I think you know how to do this :roll:

Re: Counting a circle path

PostPosted: Fri Dec 28, 2007 12:19 pm
by Troodon
Yeah, but this is weaker. I mean, this movement isn't count using the "mass center". It's just making a circle.

Re: Counting a circle path

PostPosted: Fri Dec 28, 2007 12:27 pm
by Bee-Ant
So you wanna make something moving in circle constantly depend on it's center?
Like a moon and an earth???

Re: Counting a circle path

PostPosted: Fri Dec 28, 2007 1:32 pm
by Troodon
Moon doesn't rotate around earth in circle but yeah, something like that. But don't worry, I've got a good tutorial of it here in this topic. I just haven't had time to try it yet.

Re: Counting a circle path

PostPosted: Fri Dec 28, 2007 2:00 pm
by Bee-Ant
Oh...how about use my last code also use this :
Actor>DrawActor>MoveTo>Avoid>Centre

Re: Counting a circle path

PostPosted: Sat Dec 29, 2007 8:58 am
by Kalladdolf
dunno, whether this will help...
Circle.zip
(925 Bytes) Downloaded 752 times

Re: Counting a circle path

PostPosted: Sat Dec 29, 2007 2:33 pm
by Troodon
==Kalladdolf== wrote:dunno, whether this will help...
Circle.zip


Wow, that's "simple" and working! Now I only have to understand what is it doing :? :wink: :)

Re: Counting a circle path

PostPosted: Sat Dec 29, 2007 7:50 pm
by Kalladdolf
yeah, it is.
my brother-in-law helped me making it.
he's a C++ genius :D

Re: Counting a circle path

PostPosted: Sat Dec 29, 2007 8:07 pm
by Troodon
:D

Re: Counting a circle path

PostPosted: Sat Dec 29, 2007 8:19 pm
by Kalladdolf
oh, I forgot:
what you do is, you basically increase/decrease the value of the anle "a".
angle.jpg

Re: Counting a circle path

PostPosted: Sun Dec 30, 2007 2:50 am
by Fuzzy
Great job! If I give you a point will you pass it on to your brother in law? ;)

Re: Counting a circle path

PostPosted: Sun Dec 30, 2007 11:26 am
by Kalladdolf
he doesn't have a forum account...
but I'll give him a piece of cake :D

Re: Counting a circle path

PostPosted: Mon Dec 31, 2007 10:24 am
by j2graves
==Kalladdolf== wrote:The problem for me is that everything is in english


now I understand why one type of software isn't compatable with the same type made in another country: the programming language is different!.... am I correct?

Re: Counting a circle path

PostPosted: Mon Dec 31, 2007 11:28 am
by Troodon
Programming language (PL) and human language (let's call it HP as "human protocol") are not together.
When you write something with PL (for example Java, C, OpenGL...) you write it the same way, it doesn't change if you are chinese, american or from Samoa. Myvar = 455; do the same thing in all HPs. If your HP is for example french, you understand the PL the same as someone with spanish HP. The difference comes in comments and user interface which must use more or less HP. That's why most of programs are in english HP.
If one software isn't compatable in another country, it may mean that it uses for example [ , ] instead of [ . ] etc.

Re: Counting a circle path

PostPosted: Mon Dec 31, 2007 1:12 pm
by j2graves
oh............