Stencyl GDT – Attaching Behaviors to Actors

What I really want to cover right now is how to get a script that you got from the StencylForge onto an actor! If you don’t already have actors then you can download one from the StencylForge or you can create your own in some art program. If you want you can use Pencyl to create your own art for your game, but that is for a later tutorial! Let’s first place the actor on the scene. This will allow us to see the actor and will allow us to, later, control, move and do other things with our actor in our game. To actually place the actor on the scene we have to go to our “Game Center” tab and go to Library > Scenes.

Once there we can select a previously existing scene, or we can create a completely new one. When we do either one of those we can now edit the scene. What we’ll want to do at this point is to add our actor to the scene. In the palette, on the right-hand side, we can find two different menus, tiles and actors. To add an actor to the scene, we’ll obviously want to hit actor. In this new menu we’ll find all of our current actors. Select the actor that will be your main character, the actor that you’ll be moving around the screen. Now that you have the actor selected, you can add it to the scene. To do that hover the actor over the scene and then click on the scene to drop your actor onto it.

Now, let’s learn how to add behaviors to our character so that it can move! If you go to Library > Actors we can find all of our actors. Once you arrive at Library > Actors you can double click on one of your actors and you’ll end up on a page like this.

Once there we’ll want to make our way towards the label “Behaviors” near the top-center of the screen. I’ll cover the other tabs and settings in another tutorial. Once at behaviors we’ll land at a page that looks like this.

If we then click on the box in the center of the screen find a new window.

Now, if you find the tab labeled “Motion” we can add scripts that are in this category. Remember that “4 Way Movement” script that we downloaded at the StencylForge? You’ll now see it in the box. If we double click on the “4 Way Movement” icon we can add this script to our actor that we’ve selected. Double click on the icon and we’ll find that the page that was previous blank, now has the “4 Way Movement” script attached to it.

Now that the “4 Way Movement” script is applied you will be able to move your actor is the four arrow key directions if you test your game (you can test your game by clicking “Test Game” in the top-right of the program). If you want you can enable several other features with this script. If you notice, in the image above there are several boxes you can check and text boxes you can input various integers and variables. You can check one box to move in an isometric fashion and an eight way movement fashion. You’re also allowed to edit the scripts of these behaviors by clicking “Edit Behavior.”

That pretty much sums up how to add actors to scenes and how to add behaviors to them. This is very basic, but very necessary in every game that you’ll make! More tutorials are on the way so check back often. You can also subscribe to this site by using the right sidebar or bookmark the site! See you around!

Posted in Actors, Behaviors, Scenes, Tutorial | Tagged , , , , , , , | Leave a comment

Stencyl GDT Tutorials – An Introduction to the StencylForge!

   For this tutorial, I’m going to give a basic run-down of what the StencylForge is. Probably my next several tutorials will be on the more basic side as I’m adjusting to it, you’re probably just now adjusting to it as well so I’ll keep it nice and simple going over the basics of the program and everything you need to know about it before diving into the more intermediate tutorials. Anyway, let’s get started!

As a developer, you’re probably going to spend a lot of time in the StencylForge! The StencylFore is really a huge collaborative project from programmers, developers and artists all around the world! At the StencylForge you can download art, such as sprites and backgrounds, music and sound effects and scripts, or “behaviors” for your actors, or as someone familiarized with Adobe Flash would call them (Actors), “MovieClips.” The StencylForge may just revolutionize the way we make games. With the StencylForge we can finally cut down on the time that we spend behind the script and we can focus more on building up the game, creating levels and increasing gameplay value.

I really liked this quote by Damijin in one of his blog posts on the official Stencyl Blog “This collaboration with other developers will help us to finally stop re-inventing the wheel. There is no reason why every single flash game developer on the planet should need to write the code for a platforming game from scratch, but for the most part, they do. Our games will flourish as an art form when we can spend more time focusing on making the games fun and less time creating systems from scratch that have already been built hundreds of times by other people.” I share much his same ideas. The StencylForge will allow us to create games with other people in what would have taken us months and slimming it down to weeks or less!

To get to the StencylForge is really easy. We can access the StencylForge at any time when we are making our game, or at the start-up page. The button to get to the StencylForge is listed next to “Create New,” “Save Game” and “Chat.”

Once there you’ll see a screen like this:

This is the StencylForge homepage and it contains a variety of scripts, behaviors, sprites, sounds and more all, of course, free for download. Now, remember, everything in the Stencyl Forge is free! That is definitely one of the best aspects about Stencyl – everything you could possible want to make a game is all there at your fingertips. You truly do have unlimited power with Stencyl’s amazing community and free-to-use scripts, art and sounds.

Once at the home tab in the StencylForge, which you should already be at you can travel to any categories in the left-hand sidebar. Whether you’re looking for actors, backgrounds, tilesets, fonts, music, guides, kits, et cetera, you can find it all at the StencylForge free of charge! Stencyl has literally has hundreds of downloads to choose from. If you’re looking for a specific script, piece of art or music, you can use the search bar in the top right-hand corner. Make sure that you’re in the appropriate tab though or else you might come up with unrelated results to what you may have been actually on the hunt for.

Let’s say that we see a script that catches our eye and we want to learn more about it. We can double click on the icon, or, while on a search page we can click on the icon and then hit the button on the bottom right. Once we do either one of those steps we can find a detail page about the script. For example, this is the “4 Way Movement” script page by Ceric.

At this page we can find the rating of the script, the author of the script, the number of downloads, the license type, category, version, publish date, comments and most importantly the details of the script. We can also find a download button in the top right.

If we want to go to the previous page we can use the directional arrows near the top of the screen, or we can make our way to a new tab or category using the left-hand sidebar. We can also go back to the homepage for the StencylForge by hitting the home button next to the directional arrows.

If we want to add this script to an actor, for example, we can go back to our Game Center tab, near the top of the screen, which should still be open and then we can make our way to Behaviors > For Actors. Here we can find all of the scripts that we affect our actors. Actors are basically the characters in the game, usually for the playable character. In the new window that comes up when we get to “For Actors” we can find the scripts that we have for our actors and we can create new behaviors for our actors. I’ll go over actors and how to create behaviors for them in later tutorials.

In the list we see different numbers neighboring the categories. These numbers represent the number of behaviors that we have in that category or folder. As you can see the “4 Way Movement” script, that we just downloaded in this that category. If you double click on the script we can edit it and change a couple of variables and set a couple different features up. We’ll cover how to edit behaviors and settings in a later tutorial.

That’s pretty much everything there is to the StencylForge! As you’ve learned in this tutorial, the StencylForge can be a very powerful resource! The StencylForge may just revolutionize the way we make games and I know I sound like a broken record, but it’s true. The StencylForge allows programmers and game developers to focus more on their games and less debugging and reworking their code to death. My next tutorial will be on how to get that “4 Way Movement” behavior onto an actor so that when we test our game we can actually move an actor around the screen. Remember to subscribe to this site with the button on the right sidebar or bookmark the hompage. I’ll try to get tutorials up at least once or twice a week and will try to cover anything you guys may want answered. I’m going to work on getting a contact page up so that you can submit tips, guides, or ask questions.

I’m really interested in seeing if people would be interested in submitting guides. I’m on WordPress (which I’ve been using for years and is one of the best blogging resources around) so I can’t actually have people creating accounts and submitting their own guides, but I’d love people to use a contact page (that I’m going to get up soon) and submit and guides or tips for Stencyl that they may have and then I could publish it for them with credits to them. I’d really love this site to become some sort of a collaborative effort, just like the Stencyl community itself!

Anyways, I’ll get up guides and tutorials up a couple times a week! Please bookmark or subscribe to this site and I’ll see you around!

Posted in StencylForge, Tutorial | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Stencyl Just Released (Mac & Windows Downloads)

Stencyl has just been released (May 31, 2011) for download to the public after being in beta and alpha for a couple of years. Stencyl gives new opportunity to developers that are looking for a quick way to make fantastic games. Stencyl gives you maximum control over your entire project and allows you to complete, what may have taken months in Adobe Flash in only weeks or even days in Stencyl. Stencyl’s community, especially in the “StencylForge” gives you access to hundreds of scripts that are called “behaviors” they behaviors let you control your character. Stencyl also gives you download to free art, scripts, sounds, fonts, tilesets and much, much more that you can use in your games! Stencyl may very well be revolutionizing the very way we make games.

Stencyl also include several “example” or template games that’ll give you a good understanding on how to make a certain game or genre. There are several example files, such as an engine for a platform, 3/4 view RPG game, a top-down shooter and much, much more. Stencyl also makes it easy for you to learn how to use their program with in-depth tutorials built into the program that, in total, only take about an hour and thirty minutes to complete which is a small price to pay to learn such a wonderful system.

Stecnyl has a great community, which I pointed out when discussing the StencylForge and Damijin, who used to frequently posts on the Stencyl blog put it this way “This collaboration with other developers will help us to finally stop re-inventing the wheel. There is no reason why every single flash game developer on the planet should need to write the code for a platforming game from scratch, but for the most part, they do. Our games will flourish as an art form when we can spend more time focusing on making the games fun and less time creating systems from scratch that have already been built hundreds of times by other people.”

I can’t wait to see how Stencyl takes off as it begins to launch into the public. Kongregate is helping Stencyl out and I hope to see some sort of game development contest with Stencyl on that site to introduce some of the beginner to veteran game developers alike to this truly innovative platform that may just revolutionize everything we know about making Flash games!

Hopefully, I can get some tutorials up soon. I’ve been playing around with Flash for a couple of years and actually started up a couple big Flash projects but never finished them. Actually, one of my biggest projects was put on hold for a while while I waited for Stencyl to come out since I had heard that Stencyl was far easier than creating everything yourself in Flash. Anyway, You can download Stencyl now on and by following the link below.

Visit   Download Stencyl

Posted in News | Tagged , , , , , , , , | 5 Comments