Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> MMF2 Power-up Problem, Please help if you have the ability to.
Unspecified
Chrismonster
  Posted: Jun 30 2007, 03:56 PM
Quote Post


Demon from the netherworld


Group Icon
Group: Members
Posts: 552
Member No.: 1522
Joined: 12-October 05

Status: (0d) [--]


Hello everyone, I haven't really told anyone about this, but I'm making my own Mario fangame (and my first). The problem I have right now is that when Mario touches a power-up, two of him is created! sad.gif

Example:

Event
"Small Mario" collides with "Mushroom".

Action
Destroy "Small Mario"
Create "Big Mario" at (x,y) relative to "Small Mario"

Then when I run the application and take the power-up(Mushroom) I sometimes get 2 Marios into the playfield at the same time. I've desperately tried to add Events like "run this event once" etc. but nothing seems to work. Therefore I am asking you guys for guidance....
Have you encountered this problem yourself before, and do you know how to fix it?
Is there some way to make an event or something that says something like "Only 1 object ofthis type is allowed in the frame, and if more delete the extra ones."?
PS: If you didn't read the title I'm using MMF2.


--------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
"Life is a waste of time, time is a waste of life... So lets all go out and get wasted!"
Want to draw me?
user posted image user posted image
PMEmail Poster
Top
United States
Xgoff
Posted: Jun 30 2007, 04:08 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


try switching the actions around so they go:

Create "Big Mario" at (x,y) relative to "Small Mario"
Destroy "Small Mario"

basically you're trying to reference an object that you just told MMF to destroy, which sometimes cancels the Destroy action

QUOTE
Only 1 object ofthis type is allowed in the frame, and if more delete the extra ones.


NObjects("Whatever") > 1
+ Pick one of "Whatever"
--> Whatever - Destroy

This post has been edited by Xgoff on Jun 30 2007, 04:12 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
Chrismonster
Posted: Jun 30 2007, 05:54 PM
Quote Post


Demon from the netherworld


Group Icon
Group: Members
Posts: 552
Member No.: 1522
Joined: 12-October 05

Status: (0d) [--]


The small Mario is not a problem, it gets destroyed. biggrin.gif
The problem is that when Small Mario is destroyed and the power-up, instead of 1 Big Mario, there are 2 Big Mario's really close to each other.

But the code that you wrote might help me with this. But i'll have to wait until tomorrow to find out, since MMF and the game is saved on another computer that won't be available until tomorrow. wink.gif


--------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
"Life is a waste of time, time is a waste of life... So lets all go out and get wasted!"
Want to draw me?
user posted image user posted image
PMEmail Poster
Top
United States
Xgoff
Posted: Jun 30 2007, 05:55 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


you might not have a Start of Frame destroy action for the Marios you don't need at the time


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
Chrismonster
Posted: Jun 30 2007, 06:21 PM
Quote Post


Demon from the netherworld


Group Icon
Group: Members
Posts: 552
Member No.: 1522
Joined: 12-October 05

Status: (0d) [--]


I do have that.nod.gif

What I suspect is that the power-up is there for just enough time for it to be created 2 Mario's before it is destroyed. sad.gif


--------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
"Life is a waste of time, time is a waste of life... So lets all go out and get wasted!"
Want to draw me?
user posted image user posted image
PMEmail Poster
Top
United States
Xgoff
Posted: Jun 30 2007, 06:27 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


it could be as simple as the newly-created retriggering the event somehow

try making it destroy the mushroom before it creates the new Mario if you aren't doing that already

QUOTE
What I suspect is that the power-up is there for just enough time for it to be created 2 Mario's before it is destroyed.

actually, it's possible this could happen since MMF doesn't destroy objects until the loop AFTER they've been told to be destroyed

destroying the powerup before Mario is created should destroy it before the event has a chance to be triggered a second time

This post has been edited by Xgoff on Jun 30 2007, 06:36 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
Chrismonster
Posted: Jul 1 2007, 08:38 AM
Quote Post


Demon from the netherworld


Group Icon
Group: Members
Posts: 552
Member No.: 1522
Joined: 12-October 05

Status: (0d) [--]


Do you mean putting in a code like

When "SMall Mario" is destroyed

---> Create "Big Mario"

?

The problem with that code is that the problem would get worse sad.gif Since then ther ewould be new Big Mario's coming all the time.


--------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
"Life is a waste of time, time is a waste of life... So lets all go out and get wasted!"
Want to draw me?
user posted image user posted image
PMEmail Poster
Top
United States
Xgoff
Posted: Jul 1 2007, 11:17 AM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Chrismonster @ Jul 1 2007, 07:38 AM)
Do you mean putting in a code like

When "SMall Mario" is destroyed

---> Create "Big Mario"

?

The problem with that code is that the problem would get worse sad.gif Since then ther ewould be new Big Mario's coming all the time.

no

"Small Mario" collides with "Mushroom"
--> Mushroom - Destroy
--> Create "Big Mario" at (x,y) relative to "Small Mario"
--> Small Mario - Destroy


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0721 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.68 ]