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
6 registered members (AndrewAMD, Quad, soulman3, Ayumi, steyr, 3run), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fighting game script hates me! help! #159298
10/07/07 02:10
10/07/07 02:10
Joined: Oct 2007
Posts: 4
B
badkitsune Offline OP
Guest
badkitsune  Offline OP
Guest
B

Joined: Oct 2007
Posts: 4
I'm trying to go through Alain's fighting game tutorial and get my code to work. As I'd like to learn how to make a decent fighting game as something to cut my teeth on. My game engine is version 6.60 Here's the code I have been trying to get to work:

// Fighting.wdl
path "..\\template"; //Path to WDL subdirectory
include <movement.wdl>; // libraries of WDL functions
include <messages.wdl>;
include <menu.wdl>; // menu must be included BEFORE doors and weapons
include <particle.wdl>; // remove when you need no particles
// Starting engine values
ifdef lores;
var video_mode = 4; // 320x240
ifelse;
var video_mode = 6; // 640x480
endif;
var video_depth = 16; // D3D, 16 bit resolution
var fps_max = 50; // 50 fps max
//our skills *****************************************************
var right_health = 100;
var left_health = 100;
synonym left { type entity; }
synonym right { type entity; }
var skin_right = 1;
var skin_left = 2;
bmap left_health_map = <left_health.pcx>;
bmap right_health_map = <right_health.pcx>;
panel left_health_pan;
{
pos_x = 20;
pos_y = 30;
layer = 1;
hbar = 0,0,200,left_health_map,2,left_health;
flags = d3d,overlay,refresh;
}
panel right_health_pan
{
pos_y = 30;
layer = 1;
hbar = 0,0,200,right_health_map,2,right_health;
flags = d3d,overlay,refresh;
}
/////////////////////////////////////////////////////////////////
// define a splash screen with the required A4/A5 logo
bmap splashmap = <logodark.bmp>; // the default A5 logo in templates
panel splashscreen { bmap = splashmap; flags = refresh.d3d; }
function main()
{
fps_max = 50;
warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures
// center the splash screen for non-640x480 resolutions
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
splashscreen.visible = on; // set it visible
wait(3); // wait 3 frames (for triple buffering) until it is renderight and flipped to the foreground
// now load the level
load_level (<fighting.wmb>);
// wait the required second, then switch the splashscreen off.
wait(16);
splashscreen.visible = off;
bmap_purge(splashmap); // remove logo bitmap from video memory
load_status(); // load some global variables, like sound volume
camera.pan = 90;
camera.tilt = 345;
camera.x = 0;
camera.y = -280;
camera.z = 46;
right_health_pan.pos_x = screen_size.x &#8211; (bmap_width(right_health_map) + 20);
right_health_pan.visible = on;
left_health_pan.visible = on;
}
action player_right
{
right = my;
my.skin = skin_right;
my.pan = 180;
if (my.shadow == off) { drop_shadow(); }
while ((right == null) || (left == null)){wait 1;}
}
action player_left
{
left = my;
my.skin = skin_left;
my.pan = 0;
if (my.shadow == off) { drop_shadow(); }
while ((right == null) || (left == null)){wait 1;}
}

here are the error emssages I get:

< synonm left {>
FIGHTING.WDL 18:0 (): Parameter unknown synonym bad keyword in {}

<type entity;>
FIGHTING.WDL (): Parameter unknown type bad keyword in {}

<synonym right{>
FIGHTING.WDL 19:0 () Parameter unknown sysnonym bad keyword in {}

<type entity;>
FIGHTING.WDL 19:0 () Parameter unknown type bad keyword in {}

I'd greatly apperciate it if somebody can tell me where I messed up at and how to fix it so it runs, becuase like I said I want to make a simple game to cut my teeth on and need a little help. Thanks

Re: Fighting game script hates me! help! [Re: badkitsune] #159299
10/07/07 02:57
10/07/07 02:57
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
Synonym is obsolete syntax. Replaced with Pointer.

Re: Fighting game script hates me! help! [Re: JazzDude] #159300
10/07/07 04:33
10/07/07 04:33
Joined: Oct 2007
Posts: 4
B
badkitsune Offline OP
Guest
badkitsune  Offline OP
Guest
B

Joined: Oct 2007
Posts: 4
Thanks. I tried it and I just get more errors. Perhaps anyone can help me find a fighting game tutorial that uses more up to date code?

Re: Fighting game script hates me! help! [Re: badkitsune] #159301
10/07/07 04:36
10/07/07 04:36
Joined: Jan 2007
Posts: 230
london uk/ paris
S
sueds Offline
Member
sueds  Offline
Member
S

Joined: Jan 2007
Posts: 230
london uk/ paris
I don't have it anymore but try keith's one or kingdom heart tutorial where you'll able to catch up technique like combo and gravity

Re: Fighting game script hates me! help! [Re: sueds] #159302
10/08/07 03:48
10/08/07 03:48
Joined: Oct 2007
Posts: 4
B
badkitsune Offline OP
Guest
badkitsune  Offline OP
Guest
B

Joined: Oct 2007
Posts: 4
Thanks for the hint. I'll try the kingdom eharts thing then. Wish me luck!

Re: Fighting game script hates me! help! [Re: badkitsune] #159303
10/09/07 04:26
10/09/07 04:26
Joined: Jan 2007
Posts: 230
london uk/ paris
S
sueds Offline
Member
sueds  Offline
Member
S

Joined: Jan 2007
Posts: 230
london uk/ paris
yes I hope you succeed where I fail ! hope to see your doing. If you are interested to have some models ! I do modeling and sometimes for free so if you want more information pm me


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