The Daily Click ::. Forums ::. Klik Coding Help ::. Odd button events
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
24th June, 2008 at 17:37:23 -

I have groups of events all split up which have If a button is pressed then do.... in them. the problem is if i put anything in there such as sound or frame events it automatically executes them. for instance

Button "Right" clicked - Play sound clicked
Button "Left" Clicked - Play sound Clicked

What actually hapens as soon as i load the frame is clickclickclickclickclickclickclickclickclickclickclickclickclickclick until i quit.
any ideas??

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
24th June, 2008 at 18:05:56 -

set it with a "only on loop" command maybe?

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
24th June, 2008 at 18:17:03 -

I can't figure out the reason, but you can try a classic workaround; Insert a limiting event like "When timer is greater than 00:03" with your "button clicked"-event. No one will notice the delay and mmf gets a free loop without sound.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
24th June, 2008 at 18:49:49 -

I had this problem once... Wish I remembered my solution. I would try one of those Alterable value things if the time thing doesn't work... you know, have any value, counter, global, whatever; set it to 1 at start of frame. Then have:
Button "Right" clicked AND value equals 1 - Play sound clicked

Sometimes having it qualify after the first frame fixes it. Bug I guess. O_o

 

  		
  		

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
25th June, 2008 at 10:43:35 -

Maybe "Only one action when event loops" or rearrange the conditions of the event.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
25th June, 2008 at 11:00:55 -

After selecting which sound file to play are you choosing to loop it 0 times? because remember 0 = infinite.

 
.

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th June, 2008 at 14:22:37 -

I'll try all the mentioned options but the sound plays BEFORE a button is pressed like as soon as i load the application.

Not sure but it could be related to another i ssue i have noticed. sometimes when i add an event into an already working line and test it again it no longer works even though the event i have added bears no relevance to and should not stop it working. Can't think of a reference off hand but i might try creating some new events and/or groups!

 
n/a

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
25th June, 2008 at 14:51:10 -

Please upload an MFA/CCA file so we can actually see your code.

 
Service Unavailable

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th June, 2008 at 17:02:12 -

i fixed by creating a group which played the sound when the button was pressed AND another condition was met. Thanks anyway

 
n/a
   

Post Reply



 



Advertisement

Worth A Click