Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,246 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Scripting problem [Re: Superku] #313948
03/04/10 17:08
03/04/10 17:08
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
just a little mistake

in the end of the line:

ent_create("zombiek.mdl",vector(0,0,0),attack)

is a ";" missing

->
ent_create("zombiek.mdl",vector(0,0,0),attack);

Kartoffel


POTATO-MAN saves the day! - Random
Re: Scripting problem [Re: Kartoffel] #313957
03/04/10 18:21
03/04/10 18:21
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Originally Posted By: Redeemer
You must create the object after the level has loaded...

Code:
level_load ("Huis.wmb");
wait (2); // wait until the level is loaded
ent_create("zombiek.mdl",vector(0,0,0),attack)


Otherwise the script will crash!

Originally Posted By: manual
The level_load() function is now executed immediately, instead of one frame delayed. This can lead to a different behavior when your code for some reason relied on a delayed level loading.


try
Code:
#include <acknex.h>
#include <default.c>


#define walk_percentage skill11

action zombie_bars()
{
	while (1)
	{
		my.walk_percentage += 3 * time_step; // 3 = animation speed for "walk"
		ent_animate(me, "attack", my.walk_percentage, ANM_CYCLE); // "walk" animation loop
		wait (1);
	}
}

function main()
{
	video_mode = 7;
	
	level_load ("Huis.wmb");
	ent_create("zombiek.mdl",vector(0,0,0), zombie_bars);
	
	camera.z = 120; // choose a convenient height
	camera.tilt = -15; // and tilt angle for the camera
}




Re: Scripting problem [Re: MrGuest] #313995
03/04/10 21:40
03/04/10 21:40
Joined: Mar 2010
Posts: 29
L
lollollollollol Offline OP
Newbie
lollollollollol  Offline OP
Newbie
L

Joined: Mar 2010
Posts: 29
MrGuest, ur the man.. its working.

Page 2 of 2 1 2

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