Loop in algodoo

Suggest changes and improvements to Algodoo.

Loop in algodoo

Postby Kilinich » Wed Jun 02, 2010 9:42 pm

That recursion "for" loop with limit of 40 levels is real pain in the back! :thumbdown:
Algodoo scripts need some "normal" loops! :geek:
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Loop in algodoo

Postby RA2lover » Thu Jun 03, 2010 10:56 pm

i ended up crashing algodoo when i made a function that calls itself. it's there for a reason.
EDIT: by adding limiters, i could make a recursive function to work over the for function's 48 operation limit.























bad news: it can work up to 49 times.

using the console and a dirtier function, i got 99 circles. but that would require the function not to take arguments at all, which smashes down the usability.
Jrv wrote:
TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.


GTFO newfgt
User avatar
RA2lover
 
Posts: 607
Joined: Mon Aug 31, 2009 8:43 pm
Location: Brazil

Re: Loop in algodoo

Postby Dakta » Fri Jun 04, 2010 6:40 am

Eh? Thar be limits? Sounds stupid…

I agree, we need real advanced programming constructions here people!
.. ,__,_____
. / __.==--" - - - - - - - - ""
./#(-'
.`-' From http://www.ascii-art.de/. Modded by me to work in Arial. Image
a Mammoth wrote:be boring and interesting.

Mystery wrote:If you were jailbreaker you shouldn't have when't up the 3.1.3
I didn't know you could go up 3.1.3! Thanks Mystery person!
User avatar
Dakta
 
Posts: 417
Joined: Sat Sep 12, 2009 4:36 pm

Re: Loop in algodoo

Postby Rideg » Sat Jun 12, 2010 1:06 am

support! I need to make different objects with the same code ( except for the "(x)=>" thing ) to make big loops, or make multiple loops in ONE object.

Limitless loops <==== :thumbup:
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: Loop in algodoo

Postby Matten » Sun Jun 13, 2010 9:19 am

But you have to watch out with spawning. Otherwise you spawn +inf circles or something.
But for normal use I support, loops have to be limitless.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Loop in algodoo

Postby Rideg » Sun Jun 13, 2010 1:06 pm

maybe a patch that won't allow +inf to be inserted as a number. ;)
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: Loop in algodoo

Postby Matten » Sun Jun 13, 2010 1:58 pm

But +inf could be usefull for other things. And I think it just should be possible and you have to use it good.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Loop in algodoo

Postby Rideg » Sun Jun 13, 2010 7:28 pm

We're talking about the LOOPS
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 7 guests