Sprites and Images

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
marcoagpinto
Addict
Addict
Posts: 1045
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Sprites and Images

Post by marcoagpinto »

Why can't one associate images to sprites with just one command?

Code: Select all

sprite(sprite_number,x,y,image_number)
I had to code a procedure to simulate this, which gave a lot of work.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Sprites and Images

Post by Fred »

Again, it's only a few lines of PB code, (basically StartDrawing()/DrawImage()/StopDrawing()), so you can do your own procedure for that. We usually add new function when it's:

1) too complicated to do in PB (like AES, ZIP etc. It's fully doable using regular PB commands, but it's complex topic and needs quite some code)
2) not possible using combination of current PB commands

So yes, you have do some code here and here, and no, we won't do a CreateDoom() command ;)
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: Sprites and Images

Post by Poshu »

Oh. Can we have a CreateTheNextIndieSensation() then?
Could work like CreateTheNextIndieSensation(Genre.i,MillionUnitSold.i,Arty.i,AlsoOutputForAndroid = #True) With a few hundred combinable constants for Genre, and Arty would be set between 0 = "Not arty but actually fun" to 10 being "nobody have a good enough brain to understand my message"

Looks pretty easy to me,so I'm expecting it in the next release. KTHXBYE
Post Reply