The Daily Click ::. Forums ::. Klik Coding Help ::. 2 possible crippling side effects from moving my game to MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
28th September, 2008 at 15:07:04 -

After finally getting the text blitter and music to work for my game, I compiled it into an exe and sat back to give it an MMF2 "maiden voyage" if you will. Imagine my surprise when I found out now that my hero can only attack ONE TIME per game frame / room now. A lot of debugging and testing later, I've found out that the problem was the "only one action when event loops" event line, which I not only have connected to every one of my attack groups it's everywhere in my program. For some reason MMF2 is treating these lines as a "run this event once once" so after attacking once with any weapon I can't attack at all again unless I exit the frame and return. This happens in every frame. When I take out the "only one action when event loops" line it works normally like it should.

The giant issue with this is I seriously have hundreds of "only one action when event loops" in my game, and not only hooked up to the attack groups. Why would MMF2 not execute this line properly? This is not good to say the least, compounded by this next problem:

I have a projectile weapon in the game too. When I went to shoot one, the bullet was created like it should've been near my guy but then it just hung there for about a whole second before taking off and shooting in the intended direction. This is awful and looks like shit. The events don't have the line that's causing the problems up above, all they say is to shoot an object in a certain direction. I don't understand why MMF2 wouldn't be able to handle this event properly, it seems so easy and MMF1.5 could handle both of these issues fine with no cause for alarm.

So in short, I don't know why MMF2 treats "only one action when event loops" as "run this event only once", or why it fails to shoot a simple object without a huge pause after the bullet object is created. What's worse, if I can't figure this out I'm not moving my game to MMF2 because so far it's seriously screwing it up. And since I specifically bought MMF2 for my game to be imported to, wasn't that a fine way to spend $120?

P.S: If anybody ever needs to know, to get the text blitter working in MMF2 you have to put the txtblt.cox file in the MMF1 folder, and then re-load the alphabet sprite sheet image to every text blitter object in your game or else the game will crash when it comes time to display that text blitter.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
28th September, 2008 at 15:36:55 -

where do you put it in the conditions? I am under the impression that in MMF2 at the least, when you have a "Only one event while this loops" it will only restrict the actions if all the *above* conditions are true. So reading vertically from top to bottom, if all the previous conditions were met than it will be restricted for the next frame of gameplay (but will still read the conditions, to restrict it again).

So for example, putting in:

*Repeat While Pressing Spacebar

+Only one event when this action loops


should work like you imagine; when the spacebar is held down the action executes a single time, and won't happen again until you let up on it and press it again. However, doing this condition:

*Only one event when this action loops

+Repeat While Pressing Spacebar


Will never trigger at all.


I don't see any reason why they wouldn't work if it is underneath your code properly like that, unless there is a glitch in MMF2

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
28th September, 2008 at 18:27:20 -


Originally Posted by Pixelthief
So for example, putting in:

*Repeat While Pressing Spacebar

+Only one event when this action loops


should work like you imagine; when the spacebar is held down the action executes a single time, and won't happen again until you let up on it and press it again.



Yeah, that's how I have it too, with the only one event when this action loops at the bottom of all of them. I learned that awhile ago when putting it at or near the top mad it not do anything. For laughs I tried putting it as the first event instead of the bottom, but as you said nothing happened at all. I think I'm going to sign up on the Clickteam boards and see if one of those guys might know what's up. I see the guys who actually made the thing go on there, which is pretty cool.

Nice Beholder BTW!

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
29th September, 2008 at 00:51:31 -

Pixelthief figured it out on the Clickteam boards. The problem is MMF2 wasn't understanding my "upon pressing key" event right, but changing it to "repeat while pressing key" made it work like it used to.

For the projectile I think I'll try re-making it in MMF2 from scratch and see if it works then.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click