FP issues
Author |
Message |
YasserSalama
|
Posted: Sun Jun 08, 2008 9:05 am Post subject: FP issues |
|
|
Hey guys. I am just finishing up my final project and I have run into a couple of problems. I will post the program and the required files so you can see it for yourself. The project is just basically an animation.
The first problem is that I am trying to put a background behind the characters, and it works, but the picture is flashing like crazy but the characters aren't. I've tried View.Update in different places and can't seem to figure it out because the characters aren't flashing at all.
The second problem I have is that when you get to the "choose the fate" screen, if you go over a button, and then go off of it, it still says red, which is only supposed to happen if you mouse is in a certain place. It does this for both buttons.
The third and probably the biggest problem is that when you select which character to die, it doesn't work, and it just stays on the same screen, but if you click the x in the top right to close it, without hitting yes, you can see frames of the animation going on. I've tried different ways of approaching this to fix it and they don't seem to work.
Any help would be greatly appreciated guys!
Thanks
-Yasser
Description: |
Extract with the two files and you can change the file path accordingly. |
|
Download |
Filename: |
fphelp2.rar |
Filesize: |
379.31 KB |
Downloaded: |
73 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
YasserSalama
|
Posted: Sun Jun 08, 2008 10:28 am Post subject: RE:FP issues |
|
|
Anyone?
|
|
|
|
|
|
Insectoid
|
Posted: Sun Jun 08, 2008 10:54 am Post subject: RE:FP issues |
|
|
These things take time. Your question might not be answered until tuesday, be patient. I'll look over what you've done, and in a few minutes, I'll post back.
EDIT- never mind, you'll have to wait till tomorrow.
|
|
|
|
|
|
YasserSalama
|
Posted: Sun Jun 08, 2008 11:22 am Post subject: RE:FP issues |
|
|
Alright thanks.
|
|
|
|
|
|
nastynika
|
Posted: Mon Jun 09, 2008 8:56 am Post subject: Re: FP issues |
|
|
well since my buddy insetoid seems to be slacking i will see wut i can do but give me an hour anyway
|
|
|
|
|
|
YasserSalama
|
Posted: Mon Jun 09, 2008 4:02 pm Post subject: RE:FP issues |
|
|
Yea thanks. I really need help with this because it is giving me a lot of problems and I don't know how to fix them no matter how hard I try. Any help would be appreciated.
|
|
|
|
|
|
Insectoid
|
Posted: Mon Jun 09, 2008 4:18 pm Post subject: RE:FP issues |
|
|
That's a long hour nasty!
And I'm not slacking, I'm posting when I said I would, am I not?
On to helping!
The problem is that you are using View.Update so often that it is as if you arent using it at all. You are completely negating the effects of the command! In the animation, you use View.Update 3 times. This causes major flicker! In an animation like this, it should only be used once per loop. There should be 1 cls and 1 delay. Try taking out the View.Updates and finding the one spot where it counts. Hint: it's after you've drawn everything. It is there, because I've found it. If you still haven't fixed it by tomorrow night, I'll tell you exactly where to put it. Nastynika, if you give him the answer, so help me, I'll....Nah, I'm just kidding. Funny, your school uses h:/ as the student hard drive letter? You don't go to my school do you?
EDIT: Found some spots where you didn't use View.Update quite enough...
View.Update is typically just before a delay.
Your biggest issue is putting things in the wrong spot. Try reading through your code and running it through your head as if you were the computer.
|
|
|
|
|
|
YasserSalama
|
Posted: Mon Jun 09, 2008 9:59 pm Post subject: RE:FP issues |
|
|
Alright, I'll try going through my code again insectoid. Thanks for the help!
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
riveryu
|
Posted: Mon Jun 09, 2008 10:44 pm Post subject: RE:FP issues |
|
|
- You have to put View.Update and delay after you drawed something new or else the user wont see a thing.
- If you didnt know, you can use the Sprite module in turing, in which you can avoid cls if you are using all pictures. Check the tutorial section or simply turing help.
|
|
|
|
|
|
Insectoid
|
Posted: Tue Jun 10, 2008 8:10 am Post subject: RE:FP issues |
|
|
View.Update works like this:
code: |
%draw something
View.Update
delay (1000)
cls
|
You're doing a lot of this:
code: |
%draw something
delay (1000)
cls
View.Update
|
What happens here is the picture is drawn into the memory, delayed a second, wiped from the memory, then drawn to the screen (i.e. you aren't drawing anything)
|
|
|
|
|
|
nastynika
|
Posted: Tue Jun 10, 2008 8:30 am Post subject: Re: FP issues |
|
|
yea ur right insectoid i had some new assignments come up and i didnt have a chance but it looks like ur all over it so if u still want me to look at it i can now i have the morning off soo yea
|
|
|
|
|
|
Insectoid
|
Posted: Tue Jun 10, 2008 11:25 am Post subject: RE:FP issues |
|
|
If yu still want to, you can give him the answer. I'm going to today after school anyways!
Hehe, the one guy in my class that has a higher mark than me just finished the collision detection on his breakout game that he's been working on for a week. He told me, 'Hey Jordan, I got the collisions working on my program'. You know what I did? I showed him the finished (except for menu)
Breakout I had just started today, complete with random colors, varying ball speeds and octagonal collision detection. You know what he said? He said I got it out of the 'sample' folder that comes with 4.1.1. Just goes to show what working on it until 10 almost every night can do...
Now I just have to find him and explain why I am suddenly doing things in a day what he does in a week. Did I mention that this is his final project? (mine is part of a multi-game program I'm doing, which includes pacman)
|
|
|
|
|
|
gitoxa
|
Posted: Tue Jun 10, 2008 3:26 pm Post subject: RE:FP issues |
|
|
I'd like to be the first to congratulate you.
|
|
|
|
|
|
Insectoid
|
Posted: Tue Jun 10, 2008 4:44 pm Post subject: Re: FP issues |
|
|
All right, I promised the answer today, so I am going to give it to you.
But first; I hope you didn't spend the last day twiddling your thumbs waiting for the answer. I hope you tried your best to fix it yourself. Now, I want you to take this code, compare it to your old one, and see what I changed.
Note that I only uploaded the code; trying to conserve bandwidth here! (actually, I'm just lazy)
Description: |
|
Download |
Filename: |
fpfinal.t |
Filesize: |
22.6 KB |
Downloaded: |
54 Time(s) |
|
|
|
|
|
|
nastynika
|
Posted: Wed Jun 11, 2008 8:44 am Post subject: Re: FP issues |
|
|
well looks like u got it wrapped up insectoid
|
|
|
|
|
|
|
|