Play the games, create the levels

Topic, Question :

Checkout our iPhone & iPad games!

You must register or log in to post a message.

allyally 13 years ago
  Ah, so if i told a text variable to say the list would it list all it contents?
Hexicube 13 years ago
  yes, you can put anything you want into the array...
I can even put arrays into arrays(2D arrays), which is how games like P4M work(tiles)
allyally 13 years ago
  So you can make number arrays as well as clips & sprites?
Hexicube 13 years ago
  I cant go on chat, blocked...
the second line edits a specific value in the list(the second one, its 1 because array positions start at 0 not 1)
it would be "var primes:Array"
allyally 13 years ago
  So it would be var primes.list?
Also what does the second line do? I dont understand it,
necessarily use it for primes,

[btw, go on chat]
Hexicube 13 years ago
  oh lol how weird that I looked at this :P
the prime finder? oh god will this lag, ive tried it using AS=lag :P
[edit] if you have flash, use trace(), but for a list that size I wouldnt...
use arrays:
primes=[2,4,5,7] //this makes a list =5 // this fixes the intentional mistake I made(notice how its a 1 and not 0) =11 // this adds the next prime to the end
now then, I would recommend working on the prime code itself, as by the look of it yours sucks(it goes up in 1s for checking)
also, had a speed test idea, what finishes first? that counting the first 200 primes, or mine counting the first 25000?
AK 13 years ago
  Allyally, I think MARC could help with this. Should I PM him?

Please don't delete...:(
allyally 13 years ago
  PLease dont post if youre a non-coder. The penalty is death.
allyally 13 years ago
  Question 3: [answered]
SPOILER

Question 1: [answered]
SPOILER

Question 2: [answered]
SPOILER

[<<] [1] [2]

General

First post of the topic

allyally 13 years ago
  Question 3: [answered]
SPOILER

Question 1: [answered]
SPOILER

Question 2: [answered]
SPOILER
Our free flash games   Games for your site   Games for your iPhone   Contact   Twitter @jpsarda & @bonuslevelorg