Iphone Onscreen buttons tutorial IMPORTANT

Learn how to make certain types of games and use gameEditor.

Iphone Onscreen buttons tutorial IMPORTANT

Postby krenisis » Thu May 27, 2010 8:06 pm

Ok several people have asked me and makslane for this . This is a step by step tutorial on how to make Onscreen buttons for you iphone games. This tutorial is real simple and by the end of it you should have a really short fun game to play.
1st ) download the sprite pack I included and set up the resolution for the game.
2)Note: the game included in the sprite pack is not the game we are going to make. But we will use those graphics
the game i included is advanced and very fun . Now this is going to be a little tough and hard but go slow and hang in there. follow the directions and if you dont understand something ask me. It doesnt matter if its a silly question just ask Iam a really cool guy so dont worry I help you as much as I can.

Tutorial part 1
1) After you have done the 2 steps above , now click on the view actor (the white box on the screen)
a) where it says events click on add // click on create actor // click on script editor .
b)Ok now type this
lefto;
righto;
jumpo;
c) After you have done this look at bottom of screen where it says VARIABLES and click on that
and then click on add.
d)type lefto in the 1st box press TAB button 2 times and type lefto in that box or // type lefto in NAME box then in SAVE GROUP box .
then click ok.
E) Repeat this so that you have done all 3. Then click ok and take a 5 minute break.

Tutorial part 2
a) Now all we are going to do here is add the graphics ,do it this way so you wont get confused. Just use the photos that I gave you. Add these actors and give them animations.
ADD ACTOR
leftbutton
rightbutton
jumpbutton
hero (add both right and left animations to this actor)
platform
enemy
start
exit

TAGS:make iphone games,how to make Iphone games,making iphone game tutorials,Game Editor iphone,step by step iphone game making,
Attachments
data.zip
(50.17 KiB) Downloaded 180 times
Last edited by krenisis on Mon May 31, 2010 6:25 am, edited 4 times in total.
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

Re: Iphone Onscreen buttons tutorial

Postby krenisis » Thu May 27, 2010 8:12 pm

OK now we going to set up the onscreen buttons

1) exit button = click on exit button//click on add//click on draw actor // click on add action//click on script editor// look on bottom and click on variables/functions tab // click on ExitGame // then press ok

2)start game button= click on startgame //click on add//click on draw actor // click on add action//click on script editor// look on bottom and click on variables/functions tab // click on LoadGame // put the name of your game in the box // click ok //click ok

Now you have those 2 buttons set now will will get to the hard part.


TAGS:make iphone games,how to make Iphone games,making iphone game tutorials,Game Editor iphone,step by step iphone game making,
Last edited by krenisis on Mon May 31, 2010 6:25 am, edited 1 time in total.
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

Re: Iphone Onscreen buttons tutorial

Postby krenisis » Thu May 27, 2010 8:34 pm

NOw we get to the complex part but if you pay attention you get through this hahaha

Click on your hero actor
1)click on add
2)click on draw actor
3)click on add action
4)click on script editor
5) Put this code in there or copy and paste it ( note you see where we used the variables that we made)

yvelocity++;
if(righto==1)
x=x+8;
if(lefto==1)
x=x-8;

6) Now click ok

HARD PART pay attention cause this is where the game will be made fun!!!!!

Click on your left button // click on mouse down // left click // script editor // add this code //

lefto=1;

Now click on variables/functions and click on ChangeAnimations and out the animation you want your charactor to have when you press the button.


click on your right button
// click on mouse down // left click // script editor // add this code

righto=1;

Now click on variables/functions and click on ChangeAnimations and out the animation you want your charactor to have when you press the button.


click on jump button // click on mouse down // left click // script editor // add this code

if(jumpo==1)
{
hero.yvelocity=-17;
jumpo=0;
}

then click ok


NOW IMPORTANT STEP COMMING UP PAY ATTENTION

For each button do this procedure

Click on add // click on mouse up // click left mouse button // click on script editor //

for the left button actor put

lefto=0;

right button actor put

righto=0;

for the jump button actor put

jumpo=0;

Now we are almost done click on the view actor (the white box) and delete the create actor command.
Dont run the game yet we have to add commands to the plateform actor then we can test it out.
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

Re: Iphone Onscreen buttons tutorial

Postby krenisis » Thu May 27, 2010 8:52 pm

Ok now for the final part it almost over and after this you can enjoy a fun game by adding anything you like to this. Let get busy and knock this awesome game out. You can do it ,I know its tough but I believe in all you guys and gals abilities. LETS DO THIS!!!

Hero actor
1)click on hero actor// click on add // click on collision // a box will appear make sure it has this set

on any side of // repeat while colliding click on the NO and change it to YES // then click on action// click on script editor // add this code copy and paste this you been typing to much already hahaha


PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, 0.000000, 0.000000);
jump=1;

Click ok and now your set run the game your actor should be able to move right and left and jump!!!! Yes now go to your platform actor and clone him. To clone your actor just click on him look for the clone command in the box //click on that and start cloning and moving the platforms which ever way you want.


TAGS:make iphone games,how to make Iphone games,making iphone game tutorials,Game Editor iphone,step by step iphone game making,
Last edited by krenisis on Mon May 31, 2010 6:25 am, edited 1 time in total.
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

Enemy

Postby krenisis » Thu May 27, 2010 9:05 pm

OK now for the enemy we will make him chase you all over the screen hahahaha you ready i hope you made the platforms where you could reach them.

Enemy actor
Click on enemy // click on add // click on draw actor // click on script editor // click on variables/function tab // click on MoveTo // a small box appears make it like this

ACTOR; EVENT ACTOR
RELATIVE TO ; HERO
AVOID; NONE
Change to number 1 that you see into a 5 and click ok

Now go back and click add // collision // choose the hero to collide with // click add action // click on destroy actor //
a small box appears// click on where it says event actor and change it to hero and press ok.

Now run your game the enemy will chase you around the screen try to avoid him if he hits you then you disappear. Now if you have any questions please ask and we will assist you. Any question is a good question dont be afraid , I dont know everything but I will assist you like others have assisted me. Peace
Please press point button if you enjoy my work.

l


TAGS:make iphone games,how to make Iphone games,making iphone game tutorials,Game Editor iphone,step by step iphone game making,
Last edited by krenisis on Mon Jun 07, 2010 7:43 pm, edited 2 times in total.
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

Re: Iphone Onscreen buttons tutorial IMPORTANT

Postby makslane » Fri May 28, 2010 3:27 pm

This can works on all devices not only on the iPhone.
Please, can you put the ged in the zip files?
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Iphone Onscreen buttons tutorial IMPORTANT

Postby krenisis » Sat May 29, 2010 6:41 am

The GED is in the zip file.Also if you want free sound files wav files go to this website http://www.ilovewavs.com/Effects/Animals/Animals.htm

TAGS:make iphone games,how to make Iphone games,making iphone game tutorials,Game Editor iphone,step by step iphone game making,
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

Re: Iphone Onscreen buttons tutorial IMPORTANT

Postby krenisis » Thu Jun 10, 2010 5:32 am

If you have any questions on this tutorial let me know.
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 Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron