Counting a circle path

You must understand the Game Editor concepts, before post here.

Re: Counting a circle path

Postby Bee-Ant » Fri Dec 28, 2007 9:25 am

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:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Counting a circle path

Postby Troodon » Fri Dec 28, 2007 12:19 pm

Yeah, but this is weaker. I mean, this movement isn't count using the "mass center". It's just making a circle.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Counting a circle path

Postby Bee-Ant » Fri Dec 28, 2007 12:27 pm

So you wanna make something moving in circle constantly depend on it's center?
Like a moon and an earth???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Counting a circle path

Postby Troodon » Fri Dec 28, 2007 1:32 pm

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.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Counting a circle path

Postby Bee-Ant » Fri Dec 28, 2007 2:00 pm

Oh...how about use my last code also use this :
Actor>DrawActor>MoveTo>Avoid>Centre
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Counting a circle path

Postby Kalladdolf » Sat Dec 29, 2007 8:58 am

dunno, whether this will help...
Circle.zip
(925 Bytes) Downloaded 753 times
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Counting a circle path

Postby Troodon » Sat Dec 29, 2007 2:33 pm

==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: :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Counting a circle path

Postby Kalladdolf » Sat Dec 29, 2007 7:50 pm

yeah, it is.
my brother-in-law helped me making it.
he's a C++ genius :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Counting a circle path

Postby Troodon » Sat Dec 29, 2007 8:07 pm

:D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Counting a circle path

Postby Kalladdolf » Sat Dec 29, 2007 8:19 pm

oh, I forgot:
what you do is, you basically increase/decrease the value of the anle "a".
angle.jpg
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Counting a circle path

Postby Fuzzy » Sun Dec 30, 2007 2:50 am

Great job! If I give you a point will you pass it on to your brother in law? ;)
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Counting a circle path

Postby Kalladdolf » Sun Dec 30, 2007 11:26 am

he doesn't have a forum account...
but I'll give him a piece of cake :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Counting a circle path

Postby j2graves » Mon Dec 31, 2007 10:24 am

==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?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Counting a circle path

Postby Troodon » Mon Dec 31, 2007 11:28 am

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.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Counting a circle path

Postby j2graves » Mon Dec 31, 2007 1:12 pm

oh............
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

PreviousNext

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest