IGM Tutorial: Adding Features

in Tutorials

Want to check out a PDF of this tutorial? Right click save as HERE.

Let’s take the jumping action game we’ve made in the last two tutorials and add a couple of features to it. The first we’ll add is the ability to double jump. Load up your project and head to the Gadgets sub-tab.

Start by copying the Jumping(2) “Action Program” and paste it to create Jumping(3). On Jumping(3), go ahead and check the box to make this a jump. Under “The Next Action Program” Standby and Running should both already be red so select Jumping(2), scroll down, and check the box for “The Gadget Played All Animations”. Now select the Jumping “Action Program” and select Jumping(2) as “The Next Action Program”. Scroll down and uncheck the box for “The Gadget Played All Animations”.

Then, select Jumping(3) as “The Next Action Program” and set it up for B – Upon Pressing. That’s all there is to it. Now you can test out your double jump, or add more and link them together to create triple or quadruple jumps! You can also set it up so that Jumping only goes to Jumping(3) after a switch has been turned on or off to ‘unlock’ the ability, or set it up for memories so that you can only double jump a limited number of times or in correlation to an amount of some kind.

Next we’ll create a new canvas and link it to our first canvas. Start by heading to the “Canvases” sub-tab, and hit “Create”. I’ve been over how to create a canvas before, so set this one up just like the first one for now. Feel free to use a different tile layout and change the first canvas to set up where you want the transition to take place. I created a hole in the wall and lined it up with an opening in the second canvas.

Now head to the “Links” sub-tab and hit “Create”. Take note of the fact that each link you create will have a Link A and Link B. Make sure to set your “Placement Layer” for both links to the layer your Player gadget will be on (Layer 3 if you’ve been following along with me). Now on Link A select your first canvas, and on Link B select your new canvas. Now using the images of the canvases scroll to where you want your links to be and select the area. Because I made the holes in my walls twice as high as a normal tile I need to change the size of the links.

Now, we can change how our links are displayed on the screen by selecting the “Effects & Settings For Linking From…” sub-sub-tabs. You can have links alter your music, play sound effects, change your Player gadget’s “Action Program”, change two memories, make the links only work when a switch has been turned on or upon entering a command. For now let’s set up a fade to and from black under “Display Effects”. You’ll have to select “Black” for Link A AND B in order for it to work properly. Otherwise your screen could fade to black and then come back without any kind of effect, or could jump to black and then fade in on the second canvas. Make sure to do this for both sub-sub-tabs so that going from B-to-A is the same as A-to-B. Go ahead and hit the check box for “Upon Entering The Following Command.” and select A from the menu. This will keep you from getting caught in a link-loop. If you export this to Flash then using a command to trigger the link won’t work properly (the link will activate by touch instead), but links seem to respond significantly better in Flash which keeps you from getting caught in a link-loop and eliminates the need for the command trigger.

That’s the simple way of creating links from one canvas to another. This way avoids using the “Flow” tab though, which is the more proper way to link canvases together. The “Flow” method of linking will be covered in a future tutorial.

IG Maker looking more promising with every tutorial? Don’t hesitate to purchase it using the discount code igmakerohyeah at check out to get 10% off your purchase of IGM. Have questions? Ask them in the comments below or visit the IG Maker section of our new forums.

3 comments… add one

  • Gil April 13, 2012, 1:35 am

    How do designate my player’s action and direction upon entering a link? For example, how do I go from link B to A without being stuck in a running animation AND have my character face the proper direction (left) upon appearing in my original canvas?

    Also, for double jumping, is there a reason why I cannot double jump if standing still? If I attempt to double jump while going in either a left or right direction, it works perfect, but if I stay still I can only jump once.

    Thanks for the tutorials! IGM is definetly looking enticing and the discount code makes it even more so. I definetly plan on buying do in no small part to the helpful direction these guides point me in (and since my trial is almost over haha).

    Could you do one concerning projectiles soon? “Switches” definetly look interesting too.

    • kainvinosec April 15, 2012, 12:07 am

      Hey, glad you are enjoying the tutorials. There are a lot more on the way. =)

      There are a few different ways you can toy with how your links work. Just glancing at the program I can tell you that there is an option to “Switch The Player’s Action” for both A and B links. You can also get more complex if that doesn’t give you the control you want by using memories and setting it up so that either a memory activates a switch in a random gadget, or so that when the memory equals a specific number your player gadget switches to a specific action program. That’s a little complex though, but definitely an option.

      I’m not sure why you’re having a problem with double jumping. I would guess it has something to do with how you’ve set up your action programs. If you want to send me some screenshots or your GPD I will take a look at it – kainvinosec@gmail.com

      Projectiles is on its way! There are a couple more tutorials dealing with platformers and then we will switch over to shooting games.

  • etempco April 21, 2012, 4:32 pm

    Just wanted to give a big thanks for these tutorials, they’re very well done and easy to follow. I greatly look forward to more, especially for platformers!

Leave a Comment