### Author Topic: Invisible asteroid  (Read 2485 times)

0 Members and 1 Guest are viewing this topic.

#### pastuh

• Seed
• Thank You
• -Given: 0
• Posts: 3
##### Invisible asteroid
« on: November 09, 2009, 10:10:09 PM »
I tried to learn to make maps and analyze scripts.
Tested and saw that the asteroid can be made invisible (hide it behind a "wheel"..). (Its bug?)
Sometimes works and sometimes not. (I think 70% probability)
Here's the (asteroids locations) combination im used. (Tested with 4 asteroids)

Code: [Select]
`Globals.Asteroids.MinRadius=50Globals.Asteroids.MaxRadius=150Globals.Asteroids.MinSendDistance=100Globals.Asteroids.MaxSendDistance=200Globals.G.MinAsteroidSeparation=50Globals.G.MaxAsteroidNeighbourDist=1000AddAsteroidRing(2, 0, 0, 100, 0)-- Human asteroid:a = AddAsteroidWithAttribs(0,0, 0.5,0.5,0.6)a:SetRadius(200) a.SendDistance = 1000-- Computer asteroid:a = AddAsteroidWithAttribs(800,100, 1.0,1.0,0.7)a:SetRadius(300)a.SendDistance = 1000`
If all works, not only to me .. This I believe will be useful to create a much more interesting maps

P.S. Sorr for english.. Translated own language with google

Edit: Added +2 asteroids to randomize. (now +4 random asteroids) And 100% invisible computer asteroid!
Edit2: Computer asteroid radius very important. Must be 300 or biger. If u change to 200, asteroid will be visible..
Computer asteroid shows up.. when u conquer asteroid with radius who reaches him... And u click on his (invisible) location/asteroid..
Edit3: Can't send specific number of units in this planet with mouse2, only with mouse1 (all)...
« Last Edit: November 11, 2009, 10:04:13 PM by pastuh »

#### cinemabaroque

• Seedling
• Thank You
• -Given: 0
• Posts: 26
##### Re: Invisible asteroid
« Reply #1 on: November 11, 2009, 07:59:15 AM »
Can you post the entire level file?  I can't find any problems in the script you posted but if you let me look at the entire file maybe I can find what is causing your problem.

Good to see others working on levels.  I like the look of what you have going on.

#### pastuh

• Seed
• Thank You
• -Given: 0
• Posts: 3
##### Re: Invisible asteroid
« Reply #2 on: November 11, 2009, 11:12:11 AM »
I will send you a map via email

#### Vanger

• Tester
• Shrub
• Thank You
• -Given: 0
• Posts: 212
##### Re: Invisible asteroid
« Reply #3 on: November 11, 2009, 03:24:56 PM »
Just attach it to the post.