Restored from previous forum. Originally posted by Kendrel.
I have requested this some time ago, and i was told it should be in 3.20... i dunno if i missed something, but a command like this one would be very nice if you want to code games. is it possible that PB will get something like that? well, you would also need to update the display commands, but that shouldnt be too hard, or am i wrong?!
greets from Germany
Kendrel
LoadAnimImage
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kendrel.
Exactly what i mean, and it should be optional if you want to load an animsprite (so we dont need two commands)
Then the display commands for sprites could be changed like this:
DisplaySprite(#Sprite, x, y, frame)
I also think that it would be better if you could Name your sprites like this then:
DisplaySprite(MySprite, x, y, frame)
This way its much better to handle the sprites, because i can remember their names kinda easy... but its hard to remember all numbers.
I know this would be something BlitzBasic is doing, but its a good thing... and as i said before... if PUREBASIC only gets some better commands for Gamedevelopement... it's the lonely #1 then
can you implement that?!
Exactly what i mean, and it should be optional if you want to load an animsprite (so we dont need two commands)
Then the display commands for sprites could be changed like this:
DisplaySprite(#Sprite, x, y, frame)
I also think that it would be better if you could Name your sprites like this then:
DisplaySprite(MySprite, x, y, frame)
This way its much better to handle the sprites, because i can remember their names kinda easy... but its hard to remember all numbers.
I know this would be something BlitzBasic is doing, but its a good thing... and as i said before... if PUREBASIC only gets some better commands for Gamedevelopement... it's the lonely #1 then

can you implement that?!
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> I also think that it would be better if you could Name your sprites
> because i can remember their names kinda easy... but its hard to
> remember all numbers.
That's what constants are for. You give a constant name to the number,
then use that name instead of the number in your code. So, instead of
using DisplaySprite(SpriteNumber, x, y, frame) you do it like this:
#MySprite=1 : DisplaySprite(#MySprite, x, y, frame).
Doing this does not make your code "bigger" even though you are declaring
the constant, because PureBasic simply replaces all #MySprite with 1 when
creating your exe -- so you never know the difference.
PB - Registered PureBasic Coder
> I also think that it would be better if you could Name your sprites
> because i can remember their names kinda easy... but its hard to
> remember all numbers.
That's what constants are for. You give a constant name to the number,
then use that name instead of the number in your code. So, instead of
using DisplaySprite(SpriteNumber, x, y, frame) you do it like this:
#MySprite=1 : DisplaySprite(#MySprite, x, y, frame).
Doing this does not make your code "bigger" even though you are declaring
the constant, because PureBasic simply replaces all #MySprite with 1 when
creating your exe -- so you never know the difference.
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kendrel.
Well, it is a solution... i agree!
But imagine i need that constants for something different... also it would be better if you wouldnt have to declare the constants (for the lazy ppl like me).
iam sure it is possible to do it without constants as i stated before, but if Fred dont wanna do it i wont complain... but iam sure many people would welcome this.
Well, it is a solution... i agree!
But imagine i need that constants for something different... also it would be better if you wouldnt have to declare the constants (for the lazy ppl like me).
iam sure it is possible to do it without constants as i stated before, but if Fred dont wanna do it i wont complain... but iam sure many people would welcome this.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
I´ve done a AnimSprite library a while ago and
its not realeased because it becomes a part
of a bigger Toolbox.
If you really need it now, you can contact me
to get the unofficial version now.
The final version will still be in the final Toolbox,
so i cant give it out to everybody now.
cya,
...Danilo
(registered PureBasic user)
I´ve done a AnimSprite library a while ago and
its not realeased because it becomes a part
of a bigger Toolbox.
If you really need it now, you can contact me
to get the unofficial version now.
The final version will still be in the final Toolbox,
so i cant give it out to everybody now.
cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kendrel.
Very nice to hear
I would need it as soon as possible, but if it would be okay if it is the next update.
you spoke about a bigger toolbox... cant you tell us something more and when we can take a look at it?
whatever, my second email account which allowed attachments is temorary closed, so it would be nice if i could download you work somewhere.
and thx for doing such a nice job guys...
Very nice to hear

I would need it as soon as possible, but if it would be okay if it is the next update.
you spoke about a bigger toolbox... cant you tell us something more and when we can take a look at it?
whatever, my second email account which allowed attachments is temorary closed, so it would be nice if i could download you work somewhere.
and thx for doing such a nice job guys...