Hey, we have forums!

Author Topic: Fishes  (Read 8123 times)

0 Members and 1 Guest are viewing this topic.

Offline Yogoda

  • Extra Bit
  • *****
  • Posts: 144
    • View Profile
Fishes
« on: July 18, 2009, 12:55:11 am »
How do you add simple fishes in the editor ? This looks like a dumb question, but there is no entities for the simple fishes (the groups of fishes that do nothing but swim), fish-0001 - fish-0015, and I am not able to find any script related. How do you create them in the editor ? Where is the script that handles their behaviour ? I've seen that normal entities display their name and id when hovering with the mouse, but fishes do display id 0 and no name ...

Offline Alec

  • Administrator
  • Dream Bit
  • **********
  • Posts: 2211
    • View Profile
Re: Fishes
« Reply #1 on: July 18, 2009, 01:20:45 am »
Its actually inside the level data file. There isn't any way to edit it from the editor unfortunately. :' (

Offline TheBear

  • Extra Bit
  • *****
  • Posts: 199
    • View Profile
    • http://doconnell.wordpress.com
Re: Fishes
« Reply #2 on: July 18, 2009, 07:18:07 am »
A little more info for you from a past post.
Quote
<SchoolFish x="11000" y="8000" id="0" num="12" range="500" maxSpeed="200" layer="8" gfx="Fish-0009" />
<SchoolFish x="10000" y="9500" id="4" num="8" range="800" maxSpeed="100" layer="-3" gfx="bgfish" />

Schools of fish are not placed in the editor but "manually" in the map.xml file. Everything above is pretty self explanatory...range being how far they swim in different directions and gfx being what type of fish the school is. Goes from like 0001 to 0016 or so + bgfish. Look through the map.xml files for native Aquaria to see for yourself.

Offline Yogoda

  • Extra Bit
  • *****
  • Posts: 144
    • View Profile
Re: Fishes
« Reply #3 on: July 18, 2009, 07:26:16 pm »
Thank you so much ! It helps a lot :)