Author Topic: Invisible asteroid  (Read 7072 times)

pastuh

  • Seed
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
Invisible asteroid
« on: November 10, 2009, 06:10:09 AM »
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=50
Globals.Asteroids.MaxRadius=150
Globals.Asteroids.MinSendDistance=100
Globals.Asteroids.MaxSendDistance=200
Globals.G.MinAsteroidSeparation=50
Globals.G.MaxAsteroidNeighbourDist=1000

AddAsteroidRing(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  ;D :-X

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 12, 2009, 06:04:13 AM by pastuh »

cinemabaroque

  • Seedling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
Re: Invisible asteroid
« Reply #1 on: November 11, 2009, 03:59:15 PM »
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
  • -Receive: 0
  • Posts: 3
Re: Invisible asteroid
« Reply #2 on: November 11, 2009, 07:12:11 PM »
I will send you a map via email :)

Vanger

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

Jazz Ad

  • Sapling
  • **
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 53
Re: Invisible asteroid
« Reply #4 on: November 13, 2009, 06:02:19 AM »
It's not invisible for me. :(