The Daily Click ::. Forums ::. Klik Coding Help ::. Why are my objects invisible?
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
4th February, 2008 at 15:16:55 -

Here is the problem:

To the left of the frame there are two semi-transparent objects. They are clones of the main charries jumping aniamtion and are meant to show/reappear when double jumping. I have managed to get it working with both double and standard jumps, but thats not what I want - Just the double. I tried fiddling around with events and ended up with them just being invisible all the time. Even when I tell them to reappear they don't show. There are no events (as far as I can see) forcing them to become invisible.

Here are the files:

1. Invisible: http://www.verchiesoft.com/other/tdc/nano_soldier_invisible.mfa

2. Not Invisible: http://www.verchiesoft.com/other/tdc/nano_soldier_visible.mfa

Image Edited by the Author.

 
Image

Tell 'em Babs is 'ere...

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
4th February, 2008 at 21:33:31 -

For your invisible code, you aren't actually repositioning the clones relative to the player. They aren't invisible. They just don't move from their initial locations offscreen. If you start them onscreen (or just look at them in the debugger), then you see they just float there, looking left/right like the player.

For your visible code, get rid of the visible/invisible events (leaving the repositioning actions) in "Misc" and control visibility by the double jump triggers themselves in the Double Jump group: Object is standing on ground -> make them invisible. "z" is pressed, object is not on the ground, and that flag is off, make them visible. Just for organization purposes, you might want to move the double-jump flag to the player object itself, and not some random unnamed active object platform.

Hope this helps.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
5th February, 2008 at 15:06:21 -

Haha thank you very much, sorry for being laz.y

Oh, and I have no idea why the flag was assigned to that random active object.

Thanks.

 
Image

Tell 'em Babs is 'ere...
   

Post Reply



 



Advertisement

Worth A Click