Load Anim Image

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kendrel.

It would be great to have something like LoadAnimImage (From BB).

I think its very usefull for Game Programming, and also for some little effects (Text Scrollers) it would be great.

Any chance to get something like that?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

It's planned. Should be in v3.20..

Fred - AlphaSND
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

I wanted to start a new topic, but here is already the same question!
Because it's damn unconvenient to handle 768 individual images to get access of each line of one 1024x768 picture.

What's the actual status of it's implementation ?
It would be great to be able to load an image with any specified framesize and easiliy call each of the loaded image-frames.

-> load an image, and give x,y-dimensions of one frame of it, e.g. 20x20 or 1024x1 ,etc.
e.g. result = LoadSprite(#Sprite, Name$ , frameX, frameY, frameCountStart [, mode])

then all these frames are automatically loaded with a frameCountID into an array (?) going from top left to bottom right.
(And if the actual frame-dimension while loading goes over the region of the image it's filled up with FrontColor() e.g.)

To show it use e.g. DisplaySprite(#Sprite, x, y, frameCountID)

Many smooth & cool live-graphic-effects using For/Next-Loops can be made very fast & easy with it.

Will it come some day ?? :P
%1>>1+1*1/1-1!1|1&1<<$1=1
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Froggerprogger wrote:I wanted to start a new topic, but here is already the same question!
Because it's damn unconvenient to handle 768 individual images to get access of each line of one 1024x768 picture.
:?:


however, didn't danilo already write a library providing this functionality?
Good programmers don't comment their code. It was hard to write, should be hard to read.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

GrabSprite() is your friend here :). It's almost the same than LoadAnimSprite() but requiers some more line (a for/next loop)...
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

what about Danilo's excelent Anim-Library ? there is everything you need in it.
SPAMINATOR NR.1
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

Where to get the Anim-Library from? :?
I cannot find it on the resource-site.
%1>>1+1*1/1-1!1|1&1<<$1=1
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Froggerprogger wrote:Where to get the Anim-Library from? :?
I cannot find it on the resource-site.
Try the link on Danilo's signature here :lol: :

viewtopic.php?t=6063&postdays=0&postorder=asc&start=0

It's one of the most excelent work i've seen so far for PB :P
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

WOW!

I had no idea that there's such a powerful userlib :!:

Thank you @ll
%1>>1+1*1/1-1!1|1&1<<$1=1
Post Reply