Author Topic: GEN()  (Read 2938 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
GEN()
« on: 2009-Sep-04 »
Hi,
Since loadanim shares a sprite ID...can this be split up to hold its own ID like the other object ID formats?

id% = GENSPRITE()
id% = GENSOUND()
id% = GENX_OBJ()
id% = GENFILE()

add this:

id% = GENANIM()

Basically, for the same reason you would call an object with a parralel ID.

ie
LOADANIM id=0
LOADSPRITE id=0
etc

I dont need this command, but it would be handy, and allow for more options for identities.
« Last Edit: 2009-Sep-05 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5022
  • O Rly?
    • View Profile
Re: GEN()
« Reply #1 on: 2009-Sep-05 »
Sprite_ID  == Anim_ID ;)
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: GEN()
« Reply #2 on: 2009-Sep-05 »
I know.

This conflicts..
LOADANIM "FILE1.png",0
LOADSPRITE "FILE2.png",0

If you use DRAWANIM id=0, it loads the sprite, not the anim.
hence the request for GENANIM() as a unique loading slot.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5022
  • O Rly?
    • View Profile
Re: GEN()
« Reply #3 on: 2009-Sep-05 »
Both are sprites...
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: GEN()
« Reply #4 on: 2009-Sep-05 »
yup
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)