Gamestudio Links
Zorro Links
Newest Posts
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Quad, EternallyCurious, 1 invisible), 726 guests, and 5 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
Page 2 of 2 1 2
Re: GameMain.c -> can't publish...! [Re: Ottawa] #283912
08/10/09 18:26
08/10/09 18:26
Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
turkkanka Offline OP
Newbie
turkkanka  Offline OP
Newbie

Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
Helllp please send example


Turkish Game Producer Team

oyUn ceHeNnEMi
Re: GameMain.c -> can't publish...! [Re: turkkanka] #283936
08/10/09 19:35
08/10/09 19:35
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Can't send example.

Send us a small part of your code so we can look at it.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: GameMain.c -> can't publish...! [Re: Ottawa] #283947
08/10/09 20:24
08/10/09 20:24
Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
turkkanka Offline OP
Newbie
turkkanka  Offline OP
Newbie

Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
I know English a little.Please you send example.

My home script "main.c".I am publishing compile exe but not exe??


Turkish Game Producer Team

oyUn ceHeNnEMi
Re: GameMain.c -> can't publish...! [Re: turkkanka] #283958
08/10/09 21:08
08/10/09 21:08
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

The error is on your side.

We want to know what you are doing wrong.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: GameMain.c -> can't publish...! [Re: Ottawa] #284006
08/11/09 08:56
08/11/09 08:56
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
he is using this code:
i write for him because he doesnt know SOO much english.

function main()
{
fps_max = 60;
video_set(800,600,32,1);
level_load("csat.wmb");
wait(2);
while(1)
{
if(key_esc) { sys_exit(""); }
wait(1);
}
}


action oyuncu( )
{
VECTOR HAREKET;
VECTOR zIlk;
VECTOR zSon;
var hiz_max = 20;
var hiz_min = -10;
var hiz_x = 0;
var hiz_y = 0;
var yukseklik = 0;
var durZipla = 0;
vec_zero(HAREKET);
vec_zero(zIlk);
vec_zero(zSon);
player = me;
while(1)
{
if(camera.tilt >= -45 && camera.tilt <= 70)
camera.tilt += 5 * mouse_force.y * time_step;
if(camera.tilt > 70) camera.tilt = 70;
if(camera.tilt < -45) camera.tilt = -45;
player.pan -= 5 * mouse_force.x * time_step;
if((key_w || key_s) && !durZipla)
{
if(hiz_max>hiz_x && hiz_x>hiz_min)
hiz_x += (key_w - key_s)*3;
if(hiz_x>hiz_max) hiz_x = hiz_max;
if(hiz_x<hiz_min) hiz_x = hiz_min;
if(key_w && key_s) hiz_x = 0;
}
else hiz_x = 0;
if((key_a || key_d) && !durZipla)
{
if(hiz_max>hiz_y && hiz_y>hiz_max*-1)
hiz_y += (key_a - key_d)*3;
if(hiz_y>hiz_max) hiz_y = hiz_max;
if(hiz_y<hiz_max*-1) hiz_y = hiz_max*-1;
if(key_a && key_d) hiz_y = 0;
}
else hiz_y = 0;
vec_set(zIlk,player.x);
vec_set(zSon,player.x);
zSon.z -= 5000;
yukseklik =
c_trace(zIlk,zSon,IGNORE_ME|IGNORE_PASSABLE|USE_BOX)-50;
if(key_space && !key_shift && (key_a || key_d || key_w ||
key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 12; }
else if(key_space && !key_shift && !(key_a || key_d ||
key_w || key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 12; durZipla = 1;}
else if(key_space && key_shift && (key_a || key_d || key_w
|| key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 13.5; }
else if(key_space && key_shift && !(key_a || key_d ||
key_w || key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 12; durZipla = 1; }
if (yukseklik>0)
{
HAREKET.z -= 3*time_step;
if (HAREKET.z<yukseklik*-1) HAREKET.z = yukseklik*-1;
}
else { HAREKET.z = yukseklik * -1; durZipla = 0; }
HAREKET.x = hiz_x * time_step;
HAREKET.y = hiz_y * 0.85 * time_step;
if(hiz_x!=0 && hiz_y!=0) vec_scale(HAREKET,1/1.4);
if(key_shift) { HAREKET.x*=1.7; HAREKET.y*=1.7; }
c_move(player,HAREKET,nullvector,IGNORE_PASSABLE|GLIDE);
camera.x = player.x;
camera.y = player.y;
camera.z = player.z;
camera.pan = player.pan;
wait(1);
}
}


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: GameMain.c -> can't publish...! [Re: alibaba] #284131
08/11/09 20:33
08/11/09 20:33
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

If you are working with Lite-C
you need the header

#include <acknex.h>
#include <default.c>

is this part in your code.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: GameMain.c -> can't publish...! [Re: Ottawa] #284171
08/12/09 02:10
08/12/09 02:10
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Happy Birthday Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Hmm Same question new thread. Please do not double post.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Page 2 of 2 1 2

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