Showing posts with label Templates/Tutorials. Show all posts
Showing posts with label Templates/Tutorials. Show all posts

Sunday, July 22, 2012

Easy Platformer Tutorial In Gamesalad

Many platformer games have long codes, but in this tutorial you will learn to write an easy platformer game. We first off create two actors, naming it player and ground.


We first enter the ground actor changing the density, restitution (bounciness), friction to 0, and uncheck movable (all these attributes are under physics).


We go back to the scene editor and go into the player actor. We change the density, restitution (bounciness), and friction to 0 (all these attributes are under physics). We drag in a collide behavior, making the player collide with the ground.


We also drag in an accelerate behavior and change the direction to 270 (down) and the acceleration to 1000. This is are "gravity".


Then we add our first rule. We say when right key is down and left key is up, change attribute self.motion.linearvelocityx to 200 (this is the speed). In the otherwise section, change attribute self.motion.linearvelocityx to 0 (meaning the player doesn't move). This will make the player move right when the right key is pressed.


We do the same (copy the rule by dragging down while pressing alt), but changing key right is down to up and key left is up to down. Also, change the self.motion.linearvelocityx to -200 (negative). This will move the player left when the left key is down.


Now, go back to the scene editor and drag the player and ground onto the scene. Resize the actors to the sizes you want them to be in. In the next tutorial, I will teach you to make your player jump.


Enjoy :)

CS Genius

Multiple Labels With One Actor In Gamesalad

In Gamesalad, many people use many actors to display multiple texts. This causes a lag in games and makes the game larger. This is a tutorial to save space in your game by using only one actor for many labels.

We first start off creating a new actor and naming it label. After that, go into the label actor and create a self text attribute (name it label).



Then drag in a Display Text behavior and click on the expression editor (in red circle).


From there, click on label actor, then double-click on the label attribute.


Click the green check mark after. When you are done, drag the label actor onto the scene and double-click the actor on the scene. This should lead you to the actor instance.


Go to the actor's attributes and change the label attribute to whatever you want and the actor will display that text. Press preview to check if it works.

Download Here

Hope this helps you.

CS Genius :)

Friday, July 20, 2012

New Shop Template

This is a cool shop template, but only to people who have given feedback after they died in my StarDze game (press continue, then press the blue rectangle, which will lead you to the feedback station).
This shop has some neat features:

- scrolling scenes
- all on tables
- not buggy

Try it here or play it at  http://arcade.gamesalad.com/g/98172?GSCVersion=0.9.94