Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 902 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to add a sound to a sprite #317315
03/30/10 14:55
03/30/10 14:55
Joined: Apr 2009
Posts: 14
Ohio,USA
Dennis_W Offline OP
Newbie
Dennis_W  Offline OP
Newbie

Joined: Apr 2009
Posts: 14
Ohio,USA
Hi All

Can someone tell me how to add a sound effect to a sprite in wed.

Thanks for your time

Dennis


In a Ham and Egg Breakfast
The Chicken was Involved
The Pig was COMMITED
Re: How to add a sound to a sprite [Re: Dennis_W] #317506
04/01/10 00:20
04/01/10 00:20
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
did you look at the manual under media play? there are examples there that will help. its pretty easy.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: How to add a sound to a sprite [Re: Blink] #317525
04/01/10 04:36
04/01/10 04:36
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
I think in WED you don`t can add a Sound. You have to use Lite-c for that.

Re: How to add a sound to a sprite [Re: Widi] #317528
04/01/10 05:57
04/01/10 05:57
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
you can add sounds via WED but they will loop and you cant move them anymore.
look into the maual for:
snd_play
snd_loop
ent_playsound
ent_playloop

everything is explained in the manual wink


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: How to add a sound to a sprite [Re: alibaba] #317771
04/02/10 13:55
04/02/10 13:55
Joined: Apr 2009
Posts: 14
Ohio,USA
Dennis_W Offline OP
Newbie
Dennis_W  Offline OP
Newbie

Joined: Apr 2009
Posts: 14
Ohio,USA
Thanks every one I did find in the manual on how to play a sound. I have a sprite that is a explosion and I what to play the sound with it. The problem I am having is that I can get the sound be for or after the sprite. This is what I have now.

action explosion()

{
SOUND* explosion_snd = "explosion.wav";
my.ambient = 100;
my.flags |= BRIGHT;


while(1)
{

while (!key_e) wait (.1);
snd_play (explosion_snd,100,0); wait(1);
for (my.frame=0; my.frame<12;

my.frame += 0.5 * time_step) wait (.01);

}
}


In a Ham and Egg Breakfast
The Chicken was Involved
The Pig was COMMITED

Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | 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