Computer Science Canada Need help with fighting game (smoothing animation) |
Author: | Tony_200004 [ 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 |
Author: | McKenzie [ Thu Dec 04, 2003 9:28 pm ] |
Post 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 |
Author: | Tony_200004 [ Thu Dec 04, 2003 9:30 pm ] |
Post subject: | |
Thank you very much... and if anyone has any other things to add to the program please let me know... |
Author: | Tony_200004 [ Thu Dec 04, 2003 9:33 pm ] |
Post subject: | |
lol i tried the View.Update command but it says "'Update' is not in the export list of 'View'" |
Author: | Dan [ Thu Dec 04, 2003 9:46 pm ] |
Post subject: | |
what verson of turing are you using? sounds like you got 3.x |
Author: | poly [ Thu Dec 04, 2003 9:48 pm ] | ||
Post subject: | |||
Well you need to place
|
Author: | Andy [ Thu Dec 04, 2003 9:51 pm ] |
Post subject: | |
ummm its there... o and turing 4.00 doesnt have View.Update either |
Author: | Tony_200004 [ Thu Dec 04, 2003 9:55 pm ] |
Post 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 |
Author: | poly [ Thu Dec 04, 2003 9:56 pm ] |
Post subject: | |
Ohh Okay i thought the link above was recent file |
Author: | Andy [ Thu Dec 04, 2003 9:59 pm ] |
Post 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 |
Author: | Tony_200004 [ Thu Dec 04, 2003 10:05 pm ] |
Post subject: | |
k thanks the animation has been smoothed out for me but what about the computer?? |
Author: | Tony [ Thu Dec 04, 2003 11:22 pm ] |
Post subject: | |
you have to View.Update after the entire frame is drawn. That would include both characters. Or are you asking something different? |
Author: | Andy [ Fri Dec 05, 2003 10:19 am ] |
Post subject: | |
arg when are they gonna have 4.04d out?? i want View.UpdateArea and Window.UpdateArea |
Author: | Tony [ Fri Dec 05, 2003 10:22 am ] |
Post subject: | |
dodge_tomahawk wrote: i want View.UpdateArea and Window.UpdateArea
dodge - you want too much ![]() ![]() |
Author: | Andy [ Fri Dec 05, 2003 10:28 am ] |
Post subject: | |
Nah... i'm only in gr 11, i think they'd be done in less than a year... |
Author: | Dan [ Fri Dec 05, 2003 5:03 pm ] |
Post subject: | |
tony wrote: dodge_tomahawk wrote: i want View.UpdateArea and Window.UpdateArea
dodge - you want too much ![]() ![]() also if they put that in, what will they take out ![]() so far we have been losing fetuchers with each update. i hope they put some of the old ones back in like "fullscreen" and some others. |