Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: why The sound repeated [Re: Tonyjack221] #399296
04/13/12 19:51
04/13/12 19:51
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
lol what way? grin

Re: why The sound repeated [Re: Ch40zzC0d3r] #399297
04/13/12 20:02
04/13/12 20:02
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
your way it is work
and i am now trying way of 3run

Re: why The sound repeated [Re: Tonyjack221] #399300
04/13/12 20:17
04/13/12 20:17
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
problem
if i click to object of skill6 ==0 i get not sound in first click but in the next click i get the sound
now all object play this sound what the problem i use skill6 ==1 skill6 ==2
in this objects
all object Has become like skill6 ==0
that problem make me sick any one can fix that problem

Re: why The sound repeated [Re: Tonyjack221] #399313
04/14/12 08:41
04/14/12 08:41
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
Originally Posted By: Tonyjack221
if i click mouse_left The sound repeated in this code :

if((mouse_left==1)&(my.skill6==0))
{
snd_play(SND_FINAL, 100, 0);
}

i want to play the sound Each time you press mouse_left with out repeated


first obvious problem here
Code:
&  Bitwise AND, can be used to reset certains bits in a variable. 

	if((mouse_left==1) & (my.skill6==0))
	{
		snd_play(SND_FINAL, 100, 0);
	}

your not comparing your altering

&& True if the expressions left and right of the operator are both true. 

	if((mouse_left==1) && (my.skill6==0))
	{
		snd_play(SND_FINAL, 100, 0);
	}



and another thing mouse_left==1 can be true for quite a while
oh i see others have catered to the repetition already

Last edited by Wjbender; 04/14/12 09:00.

Compulsive compiler
Re: why The sound repeated [Re: Wjbender] #399319
04/14/12 09:44
04/14/12 09:44
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
Wjbender it is work nice thak you
now the repetition has comeback how to Repaired that problem
i can't use on_mouse_left in this code
if((mouse_left==1) && (my.skill6==0))
{
snd_play(SND_FINAL, 100, 0);
}

Re: why The sound repeated [Re: Tonyjack221] #399330
04/14/12 10:49
04/14/12 10:49
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
Thanks to all I have found the solution

Page 2 of 2 1 2

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1