Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → can it be done?
can it be done?
2003-05-16, 2:56 PM #1
I want to know if it is possible to make a cog that will control the postions of small platforms based on a formula such as a parabola, cubic or exponential input somewahere in the level.

At would change between types by selecting a switch and changeing numbers ctf style. the scale would be changed so that larger numbers can be entered. that would be done via a place that said 1 metre= (insert number of spaces here).

After it is set up, it works out the positions but cancels the movement if it gets within 2 jku of the edge of the level.

I got this idea as I have been studying these things in my maths class in school recently.

I am not asking for it to be done, I just want to know if it is possible, even if it would take over a meg of programming.

If it is possible and it catches someones interest and they decide to try it, please include me in the credits and tell me if it is done. I dont want to give out my email adress so if it is done, i will send you an email and the level will be sent in the reply to see how my idea went.

Remember, this is only a question of wether it would work.

------------------
your curiosity will get the better of YOU one day.

alpha1: winner of the 2003 tfti award.

http://members.shaw.ca/orichan/images/MyArt/Guards.jpg

fear teh evil point finger attack. yu-gi-oh Dub.
Snail racing: (500 posts per line)------@%
2003-05-16, 3:50 PM #2
it all seems possible.
one possible way is to use something like 'SetThingVel' and just keep adjusting the platforms direction with some interesting math tricks depending on the pattern you want them to move in.


------------------
Famous last words - "It seemed like a good idea at the time."
Famous last words - "It seemed like a good idea at the time."
2003-05-18, 5:42 AM #3
If you can duplicate your equation in with COG's crap I mean simple math, then you can do it. E.g. for exponential growth/decay:

Code:
for (int I = 2; I < foo; I++)
{
    bar *= I;
}


------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-05-18, 7:33 PM #4
Sorry, that's C++. Force of habbit.

Code:
symbols:

int    I    local

code:

for (I = 2; I < foo; I = I + 1)
{
    bar = bar * I;
}


Or something like that.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-05-18, 7:33 PM #5
Tell me how to interpret whatever that is and I'll spit out the cog equivalent.

------------------
"Anakin, when I tried to earn my knighthood by defeating a Sith Lord, I actually WON."
-Obi Wan Kenobi

↑ Up to the top!