Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (M_D), 1,501 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Engine = problem with scans? #60505
12/13/05 14:40
12/13/05 14:40
Joined: Nov 2005
Posts: 62
Seriff Offline OP
Junior Member
Seriff  Offline OP
Junior Member

Joined: Nov 2005
Posts: 62
Hi, i bought A6.22 some time ago. And now there's the A6.31 version...
I tried to install it but i don't like to work with it... i dont know why i prefer the 6.22.
Whats the diference between them?
I have a scan script with events that doesnt work, and some shaders too... Its cuz of the A6.22?

Last edited by Seriff; 12/13/05 20:05.
Re: A6.22 and A6.31 [Re: Seriff] #60506
12/13/05 16:57
12/13/05 16:57
Joined: Jun 2005
Posts: 184
Austria
HIAS Offline
Member
HIAS  Offline
Member

Joined: Jun 2005
Posts: 184
Austria
The complete future list can be found here
but the main future is that A6.31 now runs under directx 9.0c

Re: A6.22 and A6.31 [Re: HIAS] #60507
12/13/05 19:18
12/13/05 19:18
Joined: Nov 2005
Posts: 62
Seriff Offline OP
Junior Member
Seriff  Offline OP
Junior Member

Joined: Nov 2005
Posts: 62
So why does this script doesnt work?
Its suposed that the player jumps when it touches the jump spring, but, nothing happens, and no error messages are given...



action roller
{
PLAYER=me;
player.enable_scan = on;// this makes sure the player can be scanned by
[Walking script...]
}



function jumpspringfunc
{player.enable_scan = on;// this makes sure the player can be scanned by othersmy.blue = 255;

if ((EVENT_TYPE == EVENT_ENTITY)&&(YOU == PLAYER))
{
result = vec_dist(my.x,player.x);

if(result <= 1)
{
phent_addcentralforce(PLAYER,vector(my.skill1*COS(my.pan),my.skill1*SIN(my.pan),my.skill1*TAN(my.tilt)))*time;
}
}
}


action mola
{
my.event = jumpspringfunc;
temp.x = 120;
temp.y = 120;
temp.z = 300;
scan_entity(my.x,temp);
}

Re: A6.22 and A6.31 [Re: Seriff] #60508
12/13/05 19:25
12/13/05 19:25

A
Anonymous
Unregistered
Anonymous
Unregistered
A



You need to put the () next to the name of the function. Plus, any code you put in next to the // will be ignored by the compiler.

Re: A6.22 and A6.31 #60509
12/13/05 19:45
12/13/05 19:45
Joined: Nov 2005
Posts: 62
Seriff Offline OP
Junior Member
Seriff  Offline OP
Junior Member

Joined: Nov 2005
Posts: 62

action roller
{
PLAYER=me;
player.enable_scan = on;// this makes sure the player can be scanned by
[Walking script...]
}



function jumpspringfunc()
{player.enable_scan = on;

if ((EVENT_TYPE == EVENT_ENTITY)&&(YOU == PLAYER))
{
result = vec_dist(my.x,player.x);

if(result <= 1)
{
phent_addcentralforce(PLAYER,vector(my.skill1*COS(my.pan),my.skill1*SIN(my.pan),my.skill1*TAN(my.tilt)))*time;
}
}
}


action mola
{
my.event = jumpspringfunc;
temp.x = 120;
temp.y = 120;
temp.z = 300;
scan_entity(my.x,temp);
}


Ok, now its like this, but the same problem exists :S

Re: A6.22 and A6.31 [Re: Seriff] #60510
12/14/05 00:26
12/14/05 00:26
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Quote:


action roller
{
PLAYER=me;
player.enable_scan = on;// this makes sure the player can be scanned by
[Walking script...]
}



function jumpspringfunc()
{player.enable_scan = on;

if ((EVENT_TYPE == EVENT_ENTITY)&&(YOU == PLAYER))
{
result = vec_dist(my.x,player.x);

if(result <= 1)
{
phent_addcentralforce(PLAYER,vector(my.skill1*COS(my.pan),my.skill1*SIN(my.pan),my.skill1*TAN(my.tilt)))*time;
}
}
}


action mola
{
my.event = jumpspringfunc();
temp.x = 120;
temp.y = 120;
temp.z = 300;
scan_entity(my.x,temp);
}


Ok, now its like this, but the same problem exists :S




Your mistake is in the function call at the top of your action (marked in red-orange). You need the () in there.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: A6.22 and A6.31 [Re: ulillillia] #60511
12/14/05 15:10
12/14/05 15:10
Joined: Nov 2005
Posts: 62
Seriff Offline OP
Junior Member
Seriff  Offline OP
Junior Member

Joined: Nov 2005
Posts: 62
LOL.
Seneca told me exactly the oposite, "never put the () there".
I tried the both ways, but it doesnt work...nothing is happening :S

Re: A6.22 and A6.31 [Re: Seriff] #60512
12/14/05 15:51
12/14/05 15:51
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
you have 2 actions there but niether is set up right for event handling

one has an my.enable_ but no my.event =

the other action has a my.event= but no events enabled
the player.enable_scan = onl in the fucntion is redundant as you already have it set in the action where you assign the player pointer in the first place

and no, you do not use () at the end of the my.event = function definition.

so how do you expect it to work?

it's not your edition, it's your scripting

Last edited by Grimber; 12/14/05 15:52.
Re: A6.22 and A6.31 [Re: Seriff] #60513
12/14/05 16:34
12/14/05 16:34
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
When you call a function you have to have (), but when you make a function you don not, in fact unless you use paramaters then you shouldn't use them.

fox_func();

function fox_func
{
foxhound.cool = on;


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: A6.22 and A6.31 [Re: FoxHound] #60514
12/19/05 23:04
12/19/05 23:04
Joined: Nov 2005
Posts: 62
Seriff Offline OP
Junior Member
Seriff  Offline OP
Junior Member

Joined: Nov 2005
Posts: 62
Thanks


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