Page 1 of 2

Another Very Imbarising topic

PostPosted: Mon Sep 13, 2010 7:04 am
by Turon
I have worked on the GE since October last year and I have never fully learned to do scripting user variables and other hard stuff. Well I worked hard at online tutorials and I make commands that don't do anything! Can someone help me? :P

Edit
Bleh!! I actually wrote this?

Re: Requesting video Tutorials for Scripting

PostPosted: Mon Sep 13, 2010 7:18 am
by skydereign
Well I can't help with a video tutorial, but I can explain what you are not doing correctly. The error that you got said you needed to add a } at the end. You didn't copy all of the code from Hblade's example.
Code: Select all
if(jump==0)
{
    yvelocity-=14;
    jump=1;
}


Whenever you have an open {, you will need a } to end the block of code. You will also need to add a collision event with the ground setting jump to 0.

Re: Requesting video Tutorials for Scripting

PostPosted: Mon Sep 13, 2010 5:11 pm
by zxcvbnm
Ok here is a tutorial which has one method of declaring variables .
viewtopic.php?f=4&t=8603&start=0

Re: Requesting video Tutorials for Scripting

PostPosted: Mon Sep 13, 2010 5:17 pm
by zxcvbnm
Here is another tutorial on how to put a script together and make a small game
viewtopic.php?f=4&t=8572&p=60238

Re: Requesting video Tutorials for Scripting

PostPosted: Mon Sep 13, 2010 5:29 pm
by Turon
Thank you so much kren! :D :D :D

Re: Requesting video Tutorials for Scripting

PostPosted: Mon Sep 13, 2010 5:41 pm
by Turon
after jumping one time it never jumps again :cry: :(

Re: Requesting video Tutorials for Scripting

PostPosted: Mon Sep 13, 2010 10:39 pm
by skydereign
If you are using the code from Hblade's, then as I said you need to add a collision with the top side of your ground actor. Along with the physical response, you need to have this code.
Code: Select all
jump=0;

Re: Requesting video Tutorials for Scripting

PostPosted: Tue Sep 14, 2010 1:22 am
by zxcvbnm
Turon wrote:after jumping one time it never jumps again :cry: :(


Please reread my tutorial it will explain jumping and other game elements

Re: Requesting video Tutorials for Scripting

PostPosted: Tue Sep 14, 2010 6:08 am
by Turon
(Removed by user)

Re: Requesting video Tutorials for Scripting

PostPosted: Tue Sep 14, 2010 8:51 am
by zxcvbnm
skydereign wrote:If you are using the code from Hblade's, then as I said you need to add a collision with the top side of your ground actor. Along with the physical response, you need to have this code.
Code: Select all
jump=0;


Thats different from what I use. I put collision with ground , script editor , and this code
Code: Select all
jump=1;

That will work!!

Re: Requesting video Tutorials for Scripting

PostPosted: Tue Sep 14, 2010 9:15 am
by skydereign
If you watch the video he uses Hblade's and it uses 0 as ready to jump.

Re: Requesting video Tutorials for Scripting

PostPosted: Wed Sep 15, 2010 9:40 am
by Turon
well what is the physical response code i know this code
1
1
0
1
now what is this other code? The actors name is test but that is a mistake it was to late. :oops:

Re: Requesting video Tutorials for Scripting

PostPosted: Wed Sep 15, 2010 10:17 am
by Turon
Game may be downloaded here viewtopic.php?f=4&t=8969&start=30 :D

Re: Requesting video Tutorials for Scripting

PostPosted: Wed Sep 15, 2010 4:58 pm
by Turon
.....

Re: Requesting video Tutorials for Scripting

PostPosted: Sun Sep 19, 2010 6:53 am
by Turon
Well i need good tutorails