Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
I thought Commercial could use mp3s! #125472
04/21/07 15:27
04/21/07 15:27
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline OP
User
MrCode  Offline OP
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Code:

var video_mode= 8;
var video_screen= 1;
var video_depth= 32;

var walk_speed;
var breath_speed;
var jump_speed;

string level_wmb= <disco.wmb>;

sound music= <bites_the_dust.mp3>;
sound oh_yeah= <oh_yeah.wav>;

string start_str= "Start Groovin'!";


action char_walk
{
my.fat= on;
my.narrow= on;
c_setminmax(my);
while(1)
{
if(key_cuu== on)
{
c_move(my,vector(0,6 * time_step,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 7 * time_step;
}
else
{
ent_animate(my,"stand",breath_speed,anm_cycle);
breath_speed+= 3 * time_step;
}
if(key_cud== on)
{
c_move(my,vector(0,-6 * time_step,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 7 * time_step;
}
if(key_cul== on)
{
my.pan+= 10 * time_step;
}
if(key_cur== on)
{
my.pan-= 10 * time_step;
}
if(key_j== on)
{
c_move(my,vector(0,0,15 * time_step),nullvector,glide);
ent_animate(my,"jump",jump_speed,anm_cycle);
jump_speed+= 14 * time_step;
}
else
{
c_move(my,vector(0,0,-15 * time_step),nullvector,glide);
}
wait(1);
}
}



And upon test running it:

Wrong typ bites_the_dust.mp3 music invalid file

I SWEAR my version isn't warez!

everything builds and runs just fine until now

my "About WED" window:




Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: I thought Commercial could use mp3s! [Re: MrCode] #125473
04/21/07 16:43
04/21/07 16:43
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
You have to use the media_stream commands for using mp3s, please check the manual (CScript\Enginefunctions\Multimedia\Streams)

Re: I thought Commercial could use mp3s! [Re: RedPhoenix] #125474
04/21/07 17:13
04/21/07 17:13
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
and be sure that .mp3 is in main game directory.


Never say never.
Re: I thought Commercial could use mp3s! [Re: tompo] #125475
04/21/07 17:15
04/21/07 17:15
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
That's very annoying, isn't it? I searched for a dll mp3 player to avoid this, but they all had to have the mp3s in maindirectory.

Re: I thought Commercial could use mp3s! [Re: RedPhoenix] #125476
04/21/07 17:39
04/21/07 17:39
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline OP
User
MrCode  Offline OP
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Thx, everything works now. Now to start dancin'!


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: I thought Commercial could use mp3s! [Re: RedPhoenix] #125477
04/21/07 17:41
04/21/07 17:41
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
I've wrote this in the future section, that is annoying and time to change this


Never say never.
Re: I thought Commercial could use mp3s! [Re: tompo] #125478
04/22/07 20:45
04/22/07 20:45
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You don't need to have them in the main directory if you give the full filename.


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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