The Daily Click ::. Forums ::. Klik Coding Help ::. Global Flipping Objects - MMF
 

Post Reply  Post Oekaki 
 

Posted By Message

Kai Proton



Registered
  31/01/2005
Points
  148

Wii Owner
22nd September, 2007 at 13:11:32 -

ok,

Gloabal in TGF, hit the properties of the active Object, and say Global, yay,

It then shows up in every frame,

MMF is the same ??? but when Ive tryed this in fusion, my Objects dont show up in the other frames,

help ???


 
----------------------
Time for a Sexy Party!
----------------------

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
22nd September, 2007 at 15:05:31 -

No, in MMF1.5 at least you need to check the global property to true for an object, and then copy / paste the object into each of the frames you want to use. I have a lot of such instances in my current project.

You have to be really careful not to forget what's global and what isn't, stupid as it might sound. I once edited an active and forgot it was also global (a clone from another global object) and it changed every instance of that object in my application.

There's also some weird quirk I get for global active objects that I want to change from time to time. Take a global map screen active object that appears in every frame of a game for example. If you need to change the map you could go to the first frame and make the change, and it should instantly change all such instances of this map, right? Not all the time! I don't know why it does this for me, but some instances will remain unchanged while others will feature the changes you've made to the global object. I have NO idea why this happens, but it sucks when it does because you need to go through every frame and make sure that object has been changed. If it hasn't, you can try to change the object in the same way, and sometimes that works so everything looks the same throughout.

Shit, sorry I hope that makes some sense. I get array issues with MMF too where it sometimes mixes up values from two different arrays for no apparent reason (the coding was correct). I guess every program's gotta' have it's little bugs right?

Image Edited by the Author.

 
--

"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!

Kai Proton



Registered
  31/01/2005
Points
  148

Wii Owner
22nd September, 2007 at 16:18:50 -

thanks for that Del,

i have done the edit in frame1 like you said, and it changed all the way through,

now, in my case its a String object im using,
Text1 = " "
Text2 = "location"
Text3 = "Location2"

The idea being that after 2sec. the text string sets to 1 so you dont see it onscreen,
then when the frame changes, it gives the player text2, then in the next location text3, etc..

it works fine for Frame1, (also i want it to give info, when the player Collects Stuff) so frame1 gives you "location1" then after 2seconds, it goes blank, then the player collects, and it says "item collected" (for 2 seconds)
when the frame goes to the next one, same thing as the first,
in Start of frame line, it gives the player the correct text, but, only Frame1 works.. in frame2 there is nothing, i dont understand why..

thats why i was making it global, so I can use the global events to change the text on every frame without cutting and pasting all the text manipulation lines into each frame! argh!

maybe i should do the cut n paste, its not like it will be a lot of stuff, even is I make the items, a group and the weapons another group...




 
----------------------
Time for a Sexy Party!
----------------------

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
22nd September, 2007 at 16:46:11 -

Glad to be of help. One thing you should try to do though is make everything you think you'll need in one frame first, and then test it all out. When you're sure (or pretty sure) you've got it all, then you should expand and add more frames and etc. I can't tell you how many times I've found something that I missed before and had to wade through countless frames trying to fix everything. Nothing like fixing the same group of events over 50 odd frames, blah!

Oh, and maybe you could look into displaying different paragraphs of the same string? It seems like you have a lot of strings that might be able to be condensed into one.

--

Ex:

Text1 has 3 paragraphs to it

paragraph 1 = " "
paragraph 2 = "location"
paragraph 3 = "location2"

--

Then you can manipulate what you want to display with a variable or something. And then you'd only need one global instead of 3. You probably wouldn't need a string object to be global, but you know your project better than anyone else does. Good luck with it!

 
--

"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!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
22nd September, 2007 at 16:46:49 -

Keep in mind that global objects and groups have been known to be buggy at time.

 
Craps, I'm an old man!

Kai Proton



Registered
  31/01/2005
Points
  148

Wii Owner
23rd September, 2007 at 03:34:39 -

Thanks again, for quick Responce,

Del, Thats just what i am doing with the Text and paragraph, sorry i explained it badly, if id used the work Paragraph, it would have been clear, lol

anyway,

i think i need to do it by way of text string on each level, set as a global, then i can reference it from the global events,and us a Global Value to change to tell the game what text to display...

Eek..
i guess in my heart I knew it would come to this,

i just find it annoying that in TGF once someting is declared as global is shows up in all frames, and mmf doesnt do that,

sometimes I miss TGF, but then it Passes because I like mmf lots more, lol



 
----------------------
Time for a Sexy Party!
----------------------

Kai Proton



Registered
  31/01/2005
Points
  148

Wii Owner
23rd September, 2007 at 07:42:32 -

Still Getting a problem,

now Ive copied all the code from frame 1 to frame 2,

ive made the string object global,

and tied its Paragraphs to a Value, Based on what the Player does,
great,
works great in Frame 1,
move to Frame 2, NO string object,

Ive even tryed telling it to create the object from frame 1 before telling it to display text, and still nothing,

I guess, I will have to create different objects for each frame and re-write the code to each frame too,,

again I guess its not the end of the world after all,

K.

 
----------------------
Time for a Sexy Party!
----------------------

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
23rd September, 2007 at 10:07:54 -


Originally Posted by Del Duio
No, in MMF1.5 at least you need to check the global property to true for an object, and then copy / paste the object into each of the frames you want to use.



That happens in mmf2 too. I found that a bit weird at first.

 
.

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
25th September, 2007 at 10:55:50 -


Originally Posted by Kai Proton
I guess, I will have to create different objects for each frame and re-write the code to each frame too




Yes, you need to make sure there's the object(s) and code you want on every frame.

 
--

"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