Page 1 of 1

Please Help!

PostPosted: Mon Aug 28, 2006 9:19 pm
by Jokke
Please Help!
I noticed that in abuse2 demo u can only jump once so i looked what they wrote and i tried to do the same thing but when i entered:
Code: Select all
 
Key Down/script editor:

if(canJump)
{
 yvelocity = -8;
 canJump=0;
}

 


I knew this alone wouldnt work the program obviously didnt know what "canJump" is, so i had to (try) to teach it...i found this:
Code: Select all
 
Collision/Top side of Tiles
if canJump = 1;

But that didnt work! then i searched like a Idiot on every thing with a script, but i found nothing.
So can you guys please help me out how to make that work?

PostPosted: Mon Aug 28, 2006 9:28 pm
by Jokke
damn i forgot to rename the subject before i posted this Topic...

PostPosted: Tue Aug 29, 2006 12:47 am
by makslane
In the 'Script Editor' fo to the 'Variables' button, and add canJump as a actor, integer variable.

PostPosted: Tue Aug 29, 2006 11:09 am
by Jokke
i cant find variables anywhere...and what is integer?

Found it in global code then variables

PostPosted: Tue Aug 29, 2006 11:36 am
by Jokke
ok i fixed one of the problems, now it says:

Code: Select all
 Player->Collision <Top Side of Tiles>->Script Editor:
thin thats this:
if canJump = 1;

It says:
Error line 1:Expected (
Error line 1:Undefined type of relational operation
I dont understand what im supposed to do...I do understand that im supposed to add a (

Is this the right code:
Code: Select all
if (canJump = 1);

PostPosted: Tue Aug 29, 2006 12:21 pm
by DilloDude
For the collision with the tiles, you just need to say
Code: Select all
canjump = 1;

PostPosted: Tue Aug 29, 2006 12:28 pm
by Jokke
DilloDude wrote:For the collision with the tiles, you just need to say
Code: Select all
canjump = 1;

Great Thanx atleast i dont get error messages when i test the 'game' out

PostPosted: Tue Aug 29, 2006 8:35 pm
by Game A Gogo
go in the script editor, then click variables, click add, the at the top where you enter the name, enter canJump and click ok, and it should work.

PostPosted: Wed Aug 30, 2006 9:24 am
by Jokke
thanx

PostPosted: Wed Aug 30, 2006 9:58 pm
by Game A Gogo
im here to help :wink:

PostPosted: Thu Aug 31, 2006 7:22 am
by Jokke
thanx, but i solved the jumping problem. Thanx to all the help i got.