i need help with variables and global coding

You must understand the Game Editor concepts, before post here.

i need help with variables and global coding

Postby RippeR7420 » Sun Jun 27, 2010 8:11 pm

I've looked at quite a few demos and they are using codes like:

if(jump==1) {yvelocity=-12 jump=0;}

I don't understand how to program "jump" and codes like "walkleft"..

I would really appreciate it if some one could tell me how this works!
=]
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: i need help with variables and global coding

Postby Bee-Ant » Sun Jun 27, 2010 8:53 pm

If you go to Script Editor from any event, you will find "actors", "variables/function", "Variables", "Global code", and "File" buttons on the bottom window...
Use "Variables" to add that "jump" thing...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: i need help with variables and global coding

Postby krenisis » Sun Jun 27, 2010 10:56 pm

I made a step by step tutorial here its super easy and simple this tutorial will help you alot and you be set.!!!!!

viewtopic.php?f=4&t=8572
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron