Another Very Imbarising topic

Don't know how to make something and can't find a tutorial? Ask for one here.

Another Very Imbarising topic

Postby Turon » Mon Sep 13, 2010 7:04 am

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?
Attachments
problems.png
Last edited by Turon on Thu Aug 15, 2013 3:28 pm, edited 3 times in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby skydereign » Mon Sep 13, 2010 7:18 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby zxcvbnm » Mon Sep 13, 2010 5:11 pm

Ok here is a tutorial which has one method of declaring variables .
viewtopic.php?f=4&t=8603&start=0
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby zxcvbnm » Mon Sep 13, 2010 5:17 pm

Here is another tutorial on how to put a script together and make a small game
viewtopic.php?f=4&t=8572&p=60238
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Mon Sep 13, 2010 5:29 pm

Thank you so much kren! :D :D :D
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Mon Sep 13, 2010 5:41 pm

after jumping one time it never jumps again :cry: :(
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby skydereign » Mon Sep 13, 2010 10:39 pm

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;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby zxcvbnm » Tue Sep 14, 2010 1:22 am

Turon wrote:after jumping one time it never jumps again :cry: :(


Please reread my tutorial it will explain jumping and other game elements
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Tue Sep 14, 2010 6:08 am

(Removed by user)
Last edited by Turon on Thu Feb 07, 2013 6:45 am, edited 2 times in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby zxcvbnm » Tue Sep 14, 2010 8:51 am

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!!
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby skydereign » Tue Sep 14, 2010 9:15 am

If you watch the video he uses Hblade's and it uses 0 as ready to jump.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Wed Sep 15, 2010 9:40 am

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:
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Wed Sep 15, 2010 10:17 am

Game may be downloaded here viewtopic.php?f=4&t=8969&start=30 :D
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Wed Sep 15, 2010 4:58 pm

.....
Last edited by Turon on Thu Jan 07, 2016 5:34 pm, edited 3 times in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Requesting video Tutorials for Scripting

Postby Turon » Sun Sep 19, 2010 6:53 am

Well i need good tutorails
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Next

Return to Tutorial Requests

Who is online

Users browsing this forum: No registered users and 1 guest