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

Username:   Password: 
 RegisterRegister   
 Need help with fighting game (smoothing animation)
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tony_200004




PostPosted: Thu Dec 04, 2003 9:15 pm   Post subject: Need help with fighting game (smoothing animation)

I need help making this animation smooth... it is kinda smooth but still flashes a little... was doing this on my free time and thought it would be cool to make... but there are few opstickles that i have run into mainly just getting the animation smoothed out... also if someone can help me add it in so that you only get damaged when the computer is close to you... and anything else anyone see that should be added... thanks


Movement.zip
 Description:
basic moving and fighting game

Download
 Filename:  Movement.zip
 Filesize:  1.33 MB
 Downloaded:  131 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
McKenzie




PostPosted: Thu Dec 04, 2003 9:28 pm   Post subject: (No subject)

Two very basic things that will make a world of difference.
1. use Input.KeyDown instead of getch (the f9 help is good, look at it)
2. use View.Set("offscreenonly") at the top of your program and View.Update at the bottom of your loop.

The offscreenonly means that all drawing will actually be done to a seperate area in memory. The View.Update says OK the next fram of my animation is ready, use it on the screen
Tony_200004




PostPosted: Thu Dec 04, 2003 9:30 pm   Post subject: (No subject)

Thank you very much... and if anyone has any other things to add to the program please let me know...
Tony_200004




PostPosted: Thu Dec 04, 2003 9:33 pm   Post subject: (No subject)

lol i tried the View.Update command but it says
"'Update' is not in the export list of 'View'"
Dan




PostPosted: Thu Dec 04, 2003 9:46 pm   Post subject: (No subject)

what verson of turing are you using? sounds like you got 3.x
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
poly




PostPosted: Thu Dec 04, 2003 9:48 pm   Post subject: (No subject)

Well you need to place
code:
View.Set ("graphics:offscreenonly")
that at the top of the screen for View.Update to function properly, because i did not see it in the above posted code
Andy




PostPosted: Thu Dec 04, 2003 9:51 pm   Post subject: (No subject)

ummm its there... o and turing 4.00 doesnt have View.Update either
Tony_200004




PostPosted: Thu Dec 04, 2003 9:55 pm   Post subject: (No subject)

A) i am using turing 4.0 .... but for some weird reason my turing key references dont work but whateve...
B) and also that isnt is the above code cause that was the original code.... i added them in and it still said the same thing... and also when i have downloaded people programs when i tried openeing theirs and they had View.Update it said the same thing and wouldnt run with it
Sponsor
Sponsor
Sponsor
sponsor
poly




PostPosted: Thu Dec 04, 2003 9:56 pm   Post subject: (No subject)

Ohh Okay i thought the link above was recent file
Andy




PostPosted: Thu Dec 04, 2003 9:59 pm   Post subject: (No subject)

well, if ur using turing 4.00 then dl the latest patch from holtsoft at this site
http://www.holtsoft.com/turing/support/#turing4patches

install it then you can use the newer commands
Tony_200004




PostPosted: Thu Dec 04, 2003 10:05 pm   Post subject: (No subject)

k thanks the animation has been smoothed out for me but what about the computer??
Tony




PostPosted: Thu Dec 04, 2003 11:22 pm   Post subject: (No subject)

you have to View.Update after the entire frame is drawn. That would include both characters. Or are you asking something different?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Andy




PostPosted: Fri Dec 05, 2003 10:19 am   Post subject: (No subject)

arg when are they gonna have 4.04d out?? i want View.UpdateArea and Window.UpdateArea
Tony




PostPosted: Fri Dec 05, 2003 10:22 am   Post subject: (No subject)

dodge_tomahawk wrote:
i want View.UpdateArea and Window.UpdateArea


dodge - you want too much Laughing I mean come on, its HoltSoft... you know that by the time they'll have their next patch out, you'll be in university already Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Andy




PostPosted: Fri Dec 05, 2003 10:28 am   Post subject: (No subject)

Nah... i'm only in gr 11, i think they'd be done in less than a year...
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 2  [ 16 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: