GLBasic forum

Feature request => 2D => Topic started by: Hemlos on 2009-Sep-04

Title: GEN()
Post by: Hemlos 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.
Title: Re: GEN()
Post by: Schranz0r on 2009-Sep-05
Sprite_ID  == Anim_ID ;)
Title: Re: GEN()
Post by: Hemlos 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.
Title: Re: GEN()
Post by: Schranz0r on 2009-Sep-05
Both are sprites...
Title: Re: GEN()
Post by: Hemlos on 2009-Sep-05
yup