The Daily Click ::. Forums ::. Klik Coding Help ::. Flag problem.
 

Post Reply  Post Oekaki 
 

Posted By Message

Aptennap



Registered
  23/04/2004
Points
  916
11th December, 2008 at 20:13:56 -

+Upon pressing "A"
+Flag 0 is off
-Set Flag 0 (Player) on

+Flag 0 is on
+Val. A of Player is 1
-Set Flag 0 (Player) off

MMF2 doesn't set the flag off for some reason.

Here's the file with the issue : http://www.solcon.nl/s.tennapel/test3d.mfa
The character is suppose to resize bigger when pressing A. But it only works once.


Edited by Aptennap

 
Oh sweet mary.

-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
11th December, 2008 at 21:57:09 -

do this..
+Upon pressing "A"
+Flag 0 off
+Flag 1 off
---Set flag 0 on
---Set flag 1 on

+Upon pressing "A"
+Flag 0 on
+Flag 1 off
---Set flag 0 off
---Set flag 1 on

+(Negate)Repeat while "A" is pressed
---Set flag 1 off

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

[DELETED]

Likes to put dots on paper

Registered
  08/12/2008
Points
  118

MushroomVIP MemberARGH Sign
12th December, 2008 at 01:57:55 -

It doesn't seem to make sense why you need to use an extra flag or event?

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
12th December, 2008 at 06:19:12 -

It still doesn't work, this is really weird...

EDIT : I found the problem : I was compare 2 values with different decimals (1.0 and 1), and MMF2 didn't think they were the same.

Edited by Aptennap

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
12th December, 2008 at 18:39:41 -

So how can I change 1 to 1.0? For example I have Val A and B of Player. Val A is 1.0, Val B is 1. Now I compare these values, how can I change the val B to 1.0?

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
13th December, 2008 at 13:13:47 -

Oke I fixed it by instead of adding 0.1 to Val A, I'm now adding 1 to A. Thanks for all the help!

 
Oh sweet mary.
   

Post Reply



 



Advertisement

Worth A Click