Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_playloop stops after reload a game #19747
11/11/03 05:38
11/11/03 05:38

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



My problem is this:

I use game_save/game_load to change from a level to another and to return back.
Some entities in these levels starts its sound at the beginning of its action function with ent_playloop that happen only at the beginning of the game, everything its fine, the sound moves with its entity, the doppler effect is fantastic, until the game is saved to swicth current level and return back loading the game, any ent_playloop is working, no entity is playing its environmental sound.

¿ Wich is the right way to make a moving model like a car, or a train, to produce its own sound that survive the game_save/game_load process ?

Anyone can help me ?

Last edited by Juan_Fernando; 11/11/03 05:42.
Re: ent_playloop stops after reload a game #19748
11/19/03 12:33
11/19/03 12:33
Joined: Nov 2003
Posts: 1,257
Wade_Adams Offline
Serious User
Wade_Adams  Offline
Serious User

Joined: Nov 2003
Posts: 1,257
I can't be sure without seeing the script but with the ent_playloop an entity would be required to play the sound. When you load a game, you kill the entity which likely also kills the sound loop. If you followed the load command with the appropriate ent_playloop command after the load and a wait(1) command. An entity must exist one frame before the command can be used. This would be true of the ent_playsound as well.


Optimism is an occupational hazard of programming: feedback is the treament.
Kent Beck

Moderated by  HeelX, Spirit 

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