-
Lives and score vanish
Hi!
I have a problem with my game involving the lives and score. On one frame they are there and on the next they are gone. However, they are visible on the frame editor. They are visible at start, and there is nothing blocking/hiding them. There are at least ten lives, so it's not that there aren't any lives. This has happened to me once before and I solved the problem by starting that frame over. I'm too far in now to start over again! Please help!
Thank you.
-
Re: Lives and score vanish
You need to uncheck "display as backdrop" in the Display Options of the objects.
-
Re: Lives and score vanish
[color:#FF0000]Also[/color], you need to go through your code.
1. Did you put a Live and Score object into "every" frame of your game? MMF doesn't add them by itself to each frame, it will just track them Globally if they exist.
2. Check your code to make sure your not using all your lives up with repeating or rapid code. Such as... If object is overlapping another object subtract 1 life...
3. You really need to make sure you have thoroughly checked all your code, you probably have a mistake or overlooked something...
Oh also, which build of MMF are you using? So we know that you don't have any runtime errors from an old build.
248 is the latest version, with 249 in beta at the moment.
You shouldn't have to restart your project, the solution is there. [smile]
-
Re: Lives and score vanish
Thank you for your help but the problem persists.
Pkeod - display as background is not and has never been checked.
00J - 1.OK, Yes there are lives on every frame and I can see them on the frame editor. 2. I have combed through my events and there is nothing like you described. 3.I have been searching for my mistake for quite awhile and cannot find it. What mystifies me though is that the lives still work. After I have been hit 10 times I die and the frame restarts. I can tell by the animations I have set to play when I get hit or lives run out. The lives still work, I just can't see them.
I'm running build 247 on a school computer so an update would be very dificult!
Thanks for the help and yes I felt very defeated when I had to restart the first time! Thank you agian.
-
Re: Lives and score vanish
I have lost the ability to control the visibily/existence of many other object in this frame too. I am sorry I did not realize earlier, but many active object simply do not exist once I run the frame or program! Please help!
-
Re: Lives and score vanish
The best bet would be to update to build %248, as difficult as it may be, this would probably solve most of your problems.
stephen1980
-
Re: Lives and score vanish
Quote:
I have lost the ability to control the visibily/existence of many other object in this frame too. I am sorry I did not realize earlier, but many active object simply do not exist once I run the frame or program! Please help!
[smile] All is not lost.
As Stephen said, is there anyway for you to update to build 248? I think it's like 5 mb or so. You can download it from this site.
I think your objects that do not exist are, well do you actually remember deleting the objects from the frame? Some people do that to keep the clutter of objects to a minimum. The objects remain within MMF but are removed from the play areas and zones.
-You do know that every object in the 'grey' area won't show up when you run your applicaton, only objects in the 'white' area will be shown. Consider the White area the Play Area, and the Grey Area Outside the game, the invisible area.
-It sounds like your application is working, can you describe what your game is supposed to do? Take us through it in basic terms.
------>Under lives in the event editor, there is an option to do some things when the player's lives reach 0. Also Check which lives you are using, there are Player 1, Player 2, Player 3, and Player 4. Each of these can have their own life counter. http://img5.imageshack.us/img5/9194/lives.jpg
Shot at 2009-04-30
-
Re: Lives and score vanish
I am postitive that I never deleted the described objects.
The objects are all with in the frame and not in the gray holding area.
If I did not make this clear earlier, the lives work! The only problem with the lives is the visibility. After I have been hit 10 times (the getting hit animation plays each time) I die and the corresponding animation plays. I am then sent to the TRy Agian? frame.
I am working on getting the update, but without the permisions to even download, I cannot do it myself. I have contacted the administrator but it will probably be some time before (if) we get the update. Is there a fix now?
-
Re: Lives and score vanish
Is your frame using scrolling? If so the lives must be placed within the top-left area of the frame.
-
Re: Lives and score vanish
Quote:
Originally Posted by Werbad
Is your frame using scrolling? If so the lives must be placed within the top-left area of the frame.
Yes this frame is scrolling. Yes the lives are in the top left corner. However, the frame before this one is also scrolling. But, this frame is scrolling vertically and the frame before (with lives showing) is scrolling horizontally. Is there a difference? I was not aware of it if there was...
-
Re: Lives and score vanish
Quote:
If I did not make this clear earlier, the lives work! The only problem with the lives is the visibility. After I have been hit 10 times (the getting hit animation plays each time) I die and the corresponding animation plays. I am then sent to the TRy Agian? frame.
Run your application as if it was built i.e. run the "whole" application from beginning to end, and see if your lives work.
It's kind of hard to follow what exactly your having trouble with. [laugh]
-[color:#FF0000]issue # 1[/color] Do you want your lives counter to reset?
-Are you using an Animation for your lives counter? Or are you saying that your Character displays the Getting Hit animation over and over? [color:#FF0000]issue # 1[/color] It would do that if the condition keeps looping, i.e. Lives equaling <= 0 , This would also explain why you only see your lives at 10 once. You might need to add some code to your Try Again screen that Re-sets your Lives Back to 10. Then call the restart your application event at the push of a button or something.
-DO you want 10 lives? Or 5? or 3? Do you know how to set them to any amount you want?
-[color:#FF0000]issue #1[/color] DO you want to go to the Try Again? Screen? Or are you saying that your application gets stuck looping to the Try Again screen, and your game won't reset with all lives back to 10?
-I don't know about the Vertical and horizontal Scrolling property having any effect on your lives counter as Werbad said as long as it's in the upper left hand corner of the screen and it's Follow the Frame Property is NOT Checked, there should be no problems, but you'll probably need to refer to [color:#FF0000]issue #1[/color]
-
Re: Lives and score vanish
This probably won't solve your issue as it sounds like you aren't having a problem with the scrolling, but for lives and things, uncheck the "Follow the Frame" option for the object in Runtime Options.
-
Re: Lives and score vanish
Have you tried playing with the "follow the frame" check box in the object's properties?
Also, have you looked in the debugger to see what the location of your object is? Maybe something is moving it out of frame?
If you are using layers, make sure it is on a layer above your other objects. This would force it to always be above everything. Or use a Start of Frame condition to bring that object to the front?
Just some suggestions,
Mobichan
[EDIT]: Shawn beat me to it. :)
-
Re: Lives and score vanish
Quote:
-I don't know about the Vertical and horizontal Scrolling property having any effect on your lives counter as Werbad said as long as it's in the upper left hand corner of the screen and it's Follow the Frame Property is NOT Checked, there should be no problems, but you'll probably need to refer to issue #1
Everyone seems to think this is the issue.
Is it?
Awaiting Response... [sleep]
-
Re: Lives and score vanish
Let's clarify:
There is only one main issue here. I mistakenly believed that there were two becuase I forgot that mmf2 will track the lives without displaying them. Anyways, all previously mentioned problems beside the following are non-relevant. All of the problems are isolated to one frame.
The issue: Many objects in the frame (selected almost randomly) do not exist once the frame (or program) has been run. They do not show in the debugger. These objects include the lives and score and all of the boundry objects I had used to contain several objects with a bouncing ball motion. They have never been visible but you could see there outline by watching the objects bounce off of them. Now, the objects simply fly away in all directions. The scary part: I attempted replacing some of these objects, and if I insert a new active object, it does not exist/display once the program has been run even before I edit it. I cant even get that friendly green diamond!
-
Re: Lives and score vanish
Perhaps an .mfa upload so we can look at it, seeing as this seems to get confusing at times trying to figure out the specific problem you are having.
stephen1980
-
Re: Lives and score vanish
I have been able to update one computer with 248. And there does not seem to be a lot of hope of that solving my problems. I will continue to experiment though. Does the fact that the file was created in 247 and just opened in 248 have anything to do with this?
Thank you again.
-
Re: Lives and score vanish
Are you exceeding the object limit? The default is 500, but you can make it more in the Application's properties. This definitely would be easier to debug if you uploaded the file.
-
Re: Lives and score vanish
Upload the file if possible is a definate +.
And if you can't upload the file, can you take a screen shot of your screen showing your lives object and your objects before you run the game?
And I thought the Diamond was Blue? If it's green then you really do have some mysterious problems with your version of MMF.
[confused]
http://img139.imageshack.us/img139/4...sofobject1.png
Shot at 2009-05-09
http://img142.imageshack.us/img142/6...ofobject11.png
Shot at 2009-05-09
http://img142.imageshack.us/img142/6...ofobject12.png
Shot at 2009-05-09
Can you tell us how the properties of your objects are set? These three property forms are in your active objects. They can control how your objects behave and if they exist or are visible when you run your game.
-
Re: Lives and score vanish
Quote:
Originally Posted by mobichan
Are you exceeding the object limit? The default is 500, but you can make it more in the Application's properties. This definitely would be easier to debug if you uploaded the file.
Thank you!!!!!! Yes, this fixed my problem! Everything is displaying/working. It works. The problem is solved! Thankyou!!!!
-
Re: Lives and score vanish
I changed the object limit to 2000 and everything works!
-
Re: Lives and score vanish
Quote:
Originally Posted by techmom
I changed the object limit to 2000 and everything works!
Glad to see your problem solved! :D
stephen1980
-
Re: Lives and score vanish
Quote:
Originally Posted by mobichan
If you are using layers, make sure it is on a layer above your other objects. This would force it to always be above everything. Or use a Start of Frame condition to bring that object to the front?
I got stumped for 5 minutes due to this last night - so good suggestion mobichan.
Created an active object, and it disappeared at run-time - thought I was going mad until I realised it was hiding behind by backdrops on another layer... those naughty things :)
-
Re: Lives and score vanish
Good job!
I knew it sounded like MMF was running fine, it's just really hard blindly trying to figure it out. Thanks to Mobichan's check.
-
Re: Lives and score vanish
:) Lucky guess. I fall for the "created object on the wrong layer" problem at least once a week so I thought it might be that.
Mobichan
-
Re: Lives and score vanish
00J, what are you talking about? The default active green ;)
You had better have your eyes checked...
-
Re: Lives and score vanish
I think different monitors and systems change the color slightly. On my lap it is a blue-green color.
Marv
-
Re: Lives and score vanish
It's [color:#33FF33]green[/color]?! Yes I wear glasses! [laugh] I'm on a Flatpanel Monitor. Are you sure it's not your Monitor? [laugh]
Well TechMom said the Diamond was Green... [smirk]
Hmm...
-
Re: Lives and score vanish
The default Active is blue on my pc. :confused:
stephen1980
-
Re: Lives and score vanish
Mine's turquoise, with subtle hints of sea-green.
Certainly not blue though - I can check against the Pantone Matching System if it's going to become a thread-destroyer though...
-
Re: Lives and score vanish
I don't see why not, it's technical, and related to the main topic. I was just wondering if my colors were set right. There are conflicting color variations. [laugh]