The Daily Click ::. Forums ::. Klik Coding Help ::. Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Nuutti



Registered
  26/10/2003
Points
  1364
22nd October, 2004 at 06:29:09 -

First of all sorry about the topic I didnt know what I should call this problem.

My problem: (in mmf)
I create an object Player and another object with 64*64 as its size, called Water. Then I duplicate Waters everywhere in the playfield.
Then I go to the event editor:

-When Player is overlapping Water
-> Make Water reappear

-(Negate) When Player is overlapping Water
-> Make Water invisible

Now it works so that when Player goos over a Water object then Water will stay visible although I move off it, so that Im not over it anymore. If I want it to get invisible again, I have got to get off EVERY Water object. So it's kind of an individualing problem. If anyone can help me I will be very happy.

Thanks

Nuutti

Sorry for my bad english

 
P.S. sorry for my mangled english.

Coop



Registered
  15/08/2004
Points
  347
22nd October, 2004 at 07:16:38 -

you have to spread a number through an alterable value to make each water unique

Image Edited by the Author.

 
...

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
22nd October, 2004 at 07:30:34 -

you think thats a problem? just pray to god american soldiers dont shoot you!

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Tiles

Possibly Insane

Registered
  06/12/2002
Points
  2339

GOTM 3TH PLACE WINNER - JANUARY 2010
22nd October, 2004 at 08:44:08 -

The problem is indeed the selecting. Because your Code tells ALL instances of the Active to act this way : setting it to reappear . Try a Flag instead. Flags are Object´s instance specific . Maybe this will pick your right active .

Player overlapping Water : Flag on
(Negate) Player overlapping water : Flag off

Flag on : make water reappear
Flag off : make water invisible

 
Free graphics,Free Games
http://www.reinerstilesets.de

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
22nd October, 2004 at 09:31:14 -

The problem is, (Negate) player overlapping water is never going to run, if the player is always over some water.

You can get around this with alternative logic:

+ Always
: Make Water Invisible

+ When player overlapping water
: Make Water Reappear

As you can see, they will all always be invisible, except the ones you're overlapping.

 
- Tigerworks

Rick (AntiMatter Entertainment)

Possible psychotic

Registered
  18/10/2002
Points
  814

VIP Member360 OwnerWii Owner
23rd October, 2004 at 01:25:29 -

Or, you could always add Pick one of "Water" to the conditions of each event.

 

Nuutti



Registered
  26/10/2003
Points
  1364
23rd October, 2004 at 02:53:32 -

Thanks to everyone of you, I'll try those ways..

 
P.S. sorry for my mangled english.

Nuutti



Registered
  26/10/2003
Points
  1364
23rd October, 2004 at 03:00:58 -

cool tigerworks way works! thanks!

 
P.S. sorry for my mangled english.
   

Post Reply



 



Advertisement

Worth A Click