Flash games and web components. Gaming tutorials and info.
Showing posts with label stencyl. Show all posts
Showing posts with label stencyl. Show all posts
Friday, February 28, 2014
Wednesday, February 26, 2014
Latest patch of Wonders in Math Land
Play the latest patch of Wonders in Math Land here: http://www.stencyl.com/game/play/22553
Clear browser cache and press ingame reset button if it doesn't work.
Here is the walktrough video:
Clear browser cache and press ingame reset button if it doesn't work.
Here is the walktrough video:
Screenshots:
Labels:
cards,
concentration,
game,
land,
math,
mathematics,
maths,
memory,
stencyl,
wonders
Thursday, November 14, 2013
New Memory Game
I am building simple memory game. Here are some screenshots I have made while testing it:
I am having some performance issues so now I am optimizing it. Thats the process of learning. I am still learning how Stencyl works. Anyways hopefully I will publish something soon :)
Labels:
flash,
flashplayer10,
game,
memory,
screenshots,
stencyl
Wednesday, October 9, 2013
Building custom controls in Stencyl - Part 3
I expected to be much more complicated but I achieved pausing functionality with just several clicks :)
Check out this page http://www.stencyl.com/help/view/pausing/
Go to physics tab on the SpaceRanger actor. I set the main character to be independent of gravity, and cannot be rotated. In the advanced tab I just unset can be touched ability for iOS. I leave can be pause abilty on. Here are images of events I set for Scene1:
Same as in the wiki page above. Save your game and test it. Now when you press P button the space ranger will be freezed and the screen will get dimmed.
You can also play with the focus event i.e pause the game if the focus is lost and unpause the game if the focus is restored. Gaining/loosing focus means if you press on the flash player canvas or if you press away from the canwas. I added two more focus events on Scene1.
You can check this with you mouse when you click on the taskbar and then again on the flash canvas
Check out this page http://www.stencyl.com/help/view/pausing/
Go to physics tab on the SpaceRanger actor. I set the main character to be independent of gravity, and cannot be rotated. In the advanced tab I just unset can be touched ability for iOS. I leave can be pause abilty on. Here are images of events I set for Scene1:
Same as in the wiki page above. Save your game and test it. Now when you press P button the space ranger will be freezed and the screen will get dimmed.
You can also play with the focus event i.e pause the game if the focus is lost and unpause the game if the focus is restored. Gaining/loosing focus means if you press on the flash player canvas or if you press away from the canwas. I added two more focus events on Scene1.
You can check this with you mouse when you click on the taskbar and then again on the flash canvas
Building custom controls in Stencyl - Part 2
Next is adding custom controlls to you game. Press the settings button. Tnen press Controls tab.
You can now see controls: up, down, left, right, x, z and enter. Remove x, z and enter controls as we will not use them. Add 4 more controls W, A, S and D. Then add control Pause and set it to button P.
Check the images below
Select Actors Behaviors item in the dashboard. Select "8 Way Movement" behavior, right click and press duplicate behavior. Double click on the copied behavior and press the properties tab. Rename it ArrowsWASDController. The trick is to add the missing keyboard buttons in the code so that when changes applied you can controll the character with both WASD and arrow key sets.
Here is a screenshot of the changes I have made to our copied behavior:
This is on the updating event. See only the top part. I added simple "or" condition and added corresponding button presses. The next pic is the updating event on the original "8 Way movement" behavior just to show you the differences:
Once you are finsihed editing of ArrowsWASDController behavior don't forget to press the "Attach to Actor" button. Attach it to SpaceRanger. You may think, we have added another behavior that does roughly the same thing as the first one. Well go to behaviors tab of "Space Ranger" actor and deactivate original "8 Way movement" behavior. You may also remove it if you like.
Note: As a practice you can search the behaviors and find "Cannot exit screen" behavior in Motions section. This will prevent the main character to fall off the screen and disapear.
Ok thats it for this part. Press ctrl-enter to test the game. Don't forget File->Save Game to save the progress.
You can now see controls: up, down, left, right, x, z and enter. Remove x, z and enter controls as we will not use them. Add 4 more controls W, A, S and D. Then add control Pause and set it to button P.
Check the images below
Select Actors Behaviors item in the dashboard. Select "8 Way Movement" behavior, right click and press duplicate behavior. Double click on the copied behavior and press the properties tab. Rename it ArrowsWASDController. The trick is to add the missing keyboard buttons in the code so that when changes applied you can controll the character with both WASD and arrow key sets.
Here is a screenshot of the changes I have made to our copied behavior:
![]() |
Copied "8 Way Movement" behavior |
This is on the updating event. See only the top part. I added simple "or" condition and added corresponding button presses. The next pic is the updating event on the original "8 Way movement" behavior just to show you the differences:
![]() | |||
Original "8 Way Movement" behavior |
Note: As a practice you can search the behaviors and find "Cannot exit screen" behavior in Motions section. This will prevent the main character to fall off the screen and disapear.
Ok thats it for this part. Press ctrl-enter to test the game. Don't forget File->Save Game to save the progress.
Labels:
controller,
keyboard,
part2,
stencyl,
tutorial
Building custom controls in Stencyl - Part 1
Hello. In this post I will show you how to build custom keyboard controls to control main character. For example one of my games have controls: arrow keys, up, down, left and right but I would like to add controls like WASD and P for pausing the game. I think adding secondary keys is very useful feature simply because some people are left handed but also it is useful when your right or maybe left arm gets tired so you can switch to other key set.
I have built my own sprite sheet of my main character which I call Space Ranger. Here it is:
This character has 5 states, 4 of which are flying backward, forward, upward and downward. The fifth state is hovering at some point on the screen. So each of the four above states can go to hovering state by releasing keyboard buttons and also from hovering state you can go to above four by pressing the buttons left/A, right/D, up/W and down/S.
For each of the four states this character has two frames taken from the above spritesheet.
Open Stencyl and create new blank game, call it KeyboardControllerTest. Choose custom size of 640 x 480 and press create. Next create new actor and call it SpaceRanger.
I have taken the above screenshot to show you what's going on in Stencyl. On the left pane there are listed 5 animations which represent the 5 states of the main character. Each of the animations has two frames as stated before.
Next we will add behaviours to the main character. Click on the Behaviours tab in the middle.
Click "add behaviour" button on the left bottom of the screen. From the new window select Controls item and add 8 way movement behaviour. After you add this new behaviour you can edit it like controls, animations, check the screenshots below:
Leave all other settings default. Next is adding the main character on a scene but first we need a scene. Create new scene and call it Scene1. Leave everything default. Go back to SpaceRanger page and press "Add to Scene" button in the upper right corner. Add it to Scene1 and press File-> Save Game to save the current progress.
Note: It seems ctrl-s saves the current progress of the game but not toroughly. So always try File-Save Game option.
Now press test game button in upper right or press ctrl-enter to test you game. Try to move the astronaut with the arrow key.
This completes the first part of this tutorial.
I have built my own sprite sheet of my main character which I call Space Ranger. Here it is:
This character has 5 states, 4 of which are flying backward, forward, upward and downward. The fifth state is hovering at some point on the screen. So each of the four above states can go to hovering state by releasing keyboard buttons and also from hovering state you can go to above four by pressing the buttons left/A, right/D, up/W and down/S.
For each of the four states this character has two frames taken from the above spritesheet.
Open Stencyl and create new blank game, call it KeyboardControllerTest. Choose custom size of 640 x 480 and press create. Next create new actor and call it SpaceRanger.
I have taken the above screenshot to show you what's going on in Stencyl. On the left pane there are listed 5 animations which represent the 5 states of the main character. Each of the animations has two frames as stated before.
Next we will add behaviours to the main character. Click on the Behaviours tab in the middle.
Click "add behaviour" button on the left bottom of the screen. From the new window select Controls item and add 8 way movement behaviour. After you add this new behaviour you can edit it like controls, animations, check the screenshots below:
Leave all other settings default. Next is adding the main character on a scene but first we need a scene. Create new scene and call it Scene1. Leave everything default. Go back to SpaceRanger page and press "Add to Scene" button in the upper right corner. Add it to Scene1 and press File-> Save Game to save the current progress.
Note: It seems ctrl-s saves the current progress of the game but not toroughly. So always try File-Save Game option.
Now press test game button in upper right or press ctrl-enter to test you game. Try to move the astronaut with the arrow key.
This completes the first part of this tutorial.
Labels:
controller,
keyboard,
part1,
stencyl,
tutorial
Tuesday, October 8, 2013
Playing around with Stencyl
Recently I started some development in Stencyl and I managed to publish something on this link:
http://www.stencyl.com/game/play/21785
Its still work in progress.
How I didn't have this tool before. Its really intuitive and really easy to use. It has many tools that ease your delopment process. I built the keyboard controller functionality in just several clicks. I also could animate the main character in just several clicks.
Can't wait to test it all and develop my first game with Stencyl. Wish me luck :)
http://www.stencyl.com/game/play/21785
Its still work in progress.
How I didn't have this tool before. Its really intuitive and really easy to use. It has many tools that ease your delopment process. I built the keyboard controller functionality in just several clicks. I also could animate the main character in just several clicks.
Can't wait to test it all and develop my first game with Stencyl. Wish me luck :)
Subscribe to:
Posts (Atom)