Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 .gif assistance
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
venom




PostPosted: Tue Jan 16, 2007 2:08 pm   Post subject: .gif assistance

% The "Pic.DrawFrames" program.
% Determine the number of frames in "fliptest.gif"
const fileName := "filptest.gif"
var numFrames : int := Pic.Frames (fileName)

% Load the picture
var delayTime : int
var pics : array 1 .. numFrames of int
Pic.FileNewFrames (fileName, pics, delayTime)

% Set the window to fit the picture
var w := Pic.Width (pics (1)) + 20
var h := Pic.Height (pics (1)) + 20
View.Set ("graphics:" + intstr (w) + ";" + intstr (h) + ",nobuttonbar")

% Display the pictures
for i : 1 .. 50
Pic.DrawFrames (pics, 10, 10, picCopy, upper (pics), 50, false)
end for

for my final project im useing .gif files in my program but i'm running blanks on how to flip the image, i know how to flip a normal image but with this set up i just dont know how >.<
Sponsor
Sponsor
Sponsor
sponsor
apomb




PostPosted: Tue Jan 16, 2007 7:24 pm   Post subject: Re: .gif assistance

Are .gif's even allowed to be used in Turing? i thought not ... this might be your problem?
berrberr




PostPosted: Tue Jan 16, 2007 11:37 pm   Post subject: Re: .gif assistance

CompWiz333 @ Tue Jan 16, 2007 7:24 pm wrote:
Are .gif's even allowed to be used in Turing? i thought not ... this might be your problem?


Actually .gif's are allowed in Turing Rolling Eyes
As for the actual question, are you trying to flip an animated .gif file, or are you trying to do something else? Please specify Very Happy
venom




PostPosted: Thu Jan 18, 2007 12:11 pm   Post subject: Re: .gif assistance

so far im trying to make an rpg and i finshed the players side but not the NPC i need them to be fliped, it wouldn't look good if there back is facing the players now is it Razz , i cant flip the image in the code and im not sure what image editing program will allow me to filp the .gif file without any problems
Clayton




PostPosted: Thu Jan 18, 2007 5:36 pm   Post subject: Re: .gif assistance

any decent photoshop-type application should be able to flip the pictures, so if you are using a sprite sheet, flip the sheet and then make the sprites from there.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: