FreshNova - Home

Wednesday 10th of March 2010

feed-image Feed Entries
Home Flash Tutorials
Flash Tutorials
Simple Energy/Health Bar In A Flash Game PDF Print E-mail
Written by Waleed Al-Bahrawy   
Saturday, 14 February 2009 00:15

 

This is a simple bar like the ones we see in shooting games that shows how much life,health or energy left for you, I just made a very simple example to show how it is done.

As you can see I made two buttons Shoot Me and Help!!.  when you click on Shoot Me your energy will be decreased,

if you click on Help!! it will increase.

 
Read 6 Comments... >>

Last Updated on Saturday, 14 February 2009 14:28
Read more...
 
Market Your Flash Game Using Facebook Applications! PDF Print E-mail
Written by Waleed Al-Bahrawy   
Friday, 13 February 2009 10:12

 

logo

While I was looking in the internet for ways to make

Facebook applications for my game Sky MazezZ

I found this amazing website Clearspring that

does everything for you without any

programing effort!!

 

What this website does is making a widget out of

your flash game and then ebmeding it in a

Facebook application.

Lets take a look at how this is done.

 
Read 3 Comments... >>

Last Updated on Friday, 13 February 2009 13:39
Read more...
 
Exploring the Dark Room Using the Masking Property in Action Script 3 PDF Print E-mail
Written by Waleed Al-Bahrawy   
Tuesday, 10 February 2009 12:09

 

 

 

Using the masking property in Action Script 3 an object can mask the content of another object.

The masking object will show only the content of the masked object that is in it's range.

Many game developers are using this property in their games and I used it in my game Sky MazezZ (starting from level 15), where the level will be dark and the player can only see a limited area of the maze and doesnt know what is coming.


Read 0 Comments... >>

Last Updated on Thursday, 12 February 2009 01:07
Read more...
 
How to Run Your Game From Your Server Only? PDF Print E-mail
Written by Waleed Al Bahrawy   
Tuesday, 27 January 2009 20:06

Suppose you made your own flash game and you want to put it on the internet like everybody else. Well thats pretty easy, only people may take your game and put it on there own sites, or maybe just download it and play offline.


Well not to worry there is a pretty easy way to prevent it.

Just read on for the code and well offcourse a little explaination...

 

 Just insert the following code into your game ActionScript in the correct place as described below:

 

1
2
3
4
5
6
7
8
9
if (this.root.loaderInfo.url.indexOf("YOURSITEHERE") != -1) {
//OK THATS WHAT I WANT
}
else {
//if the game is not played from my server
//redirect the player to my site!
var myURL:URLRequest = new URLRequest("YOURSITEHERE");
navigateToURL(myURL);
}

 

Description of the code:

We are using the this.root.loaderInfo.url property that returns the full path of the SWF file, starting with http:// , so we are checking if the path of the game has your web address in it or not. It will return -1 if it doesnt and will return a positive value if it does.

LINE 1: The value is not -1, that means the game is running from your server. You can leave the body empty or add an action such as starting the game!


LINE 4: This means someone downloaded the game and running it from his server or on his computer. In this case you will need to redirect the player to the original place of the game which is your website.

 

LINES 7&8: These lines are for redirecting the player to your website

You can do this check before the game starts, if it is running from your server then start the game, otherwise dont start the game and redirect the player to your website.

Also when you publish your game out there on the internet you will also need to learn about flash games decomplation


Read 0 Comments... >>
Last Updated on Tuesday, 10 February 2009 10:38
 
Where to Submit your Flash Game? PDF Print E-mail
Written by Waleed Al Bahrawy   
Friday, 23 January 2009 23:12

You just finished your game and tested it and everthing is OK and now you want to publish it. I advice you to first upload the game onto (www.kongregate.com/) and (www.newgrounds.com), because they are the most known flash game portals that accept game submissions from developers and have big amount of traffic.

After that you may search for flash game portals that accept submissions from developers.Here is a list of websites that accept game submissions, some of them will require registration.

Note: If the website asked for "Flash URL", upload the "SWF" file of the game on your website and enter the address of the "SWF" file in the field or make a site using google sites and upload the file there if you dont have a website.

http://www.gamegum.com/submit/
http://www.pnflashgames.com/module-pnfgSubmit.phtml
http://www.itsgamertime.com/submit.php
http://www.gamerfan.com/play/submit/form/index.php
http://www.gotoandplay.com/submit-flash-content/
http://www.free-flash-games.com/submit.html
http://www.gs4.net/index.php/submit/form/
http://howler.com/index.php?params=submit/form/
http://www.gameshandbook.com/submit.php
http://www.igarchive.com/user/addgame_nonemember.php
http://www.thegreatestarcade.com/submit.php
http://addictinggames7.com/submit.htm
http://www.onlinegamesrus.com/submit.php
http://www.bigfootgame.com/submit/
http://www.mypuzzlesgames.com/submit.php
http://www.dontgetpwned.com/index.php?page=submitgames&add=1
http://www.clickhereplaygames.com/submit.php
http://greatinternetgames.com/submit.php
http://www.smashingames.com/submit.php
http://www.gr8games.eu/upload.html

Below you will find even more links to websites and emails that accept submissions of your flash games on their game portals. Remember the more you submit the more the popular your game becomes.


Read 4 Comments... >>

Last Updated on Wednesday, 25 February 2009 20:56
Read more...
 
Hallpass API PDF Print E-mail
Written by Administrator   
Friday, 23 January 2009 22:58

 

hallpass

 

I will summaries what Hallpass say about their API:

-50$ for each API added to a game, ofcourse after the game is approved by Hallpass.
-They will pay you via PayPal after your game is uploaded to their site.
-The API will send the scores to Hallpass, and they will be tracked in the users profiles.
-The scores must be submitted at the end of each level or game.

Here are the steps to add the API:

1-Add the API Code to your game.
2-Upload it to Hallpass.
3-Wait a few minutes then check your profile area, your game should appear. Play and test your game out to see if it is sendingthe scores, be patient as scores update every few minutes... so play, wait, then check.
4- Contact Hallpass and tell them that your game has worked and you want to get paid and include your pay pal address.

for more info visit Hallpass API


Read 0 Comments... >>
Last Updated on Sunday, 08 February 2009 01:03
 
Protect Your Flash Game From Decompilers PDF Print E-mail
Written by Administrator   
Friday, 23 January 2009 11:46

Go to google and search for flash file decompilers, you will find numerours programs out there, that wil allow your flash file to be decompiled. Once decompiled the file can easily be edited and your source code can easily be seen. So it is important to protect flash files that you publish on the internet.

There are two numerous ways out there to protect flash files, we will discuss two ways to achieve this, a basic way provided by Adobe Flash and another provided by MochiAds.


Read 0 Comments... >>

Last Updated on Sunday, 08 February 2009 01:07
Read more...
 
AS3 Loading Screen ( Preloader ) PDF Print E-mail
Written by Administrator   
Friday, 23 January 2009 10:45

Why do we need loading screen?

Flash is built for streaming content, which means the movie will start if the minimum bare content has been loaded, such as elements used in the first frame.


This will not be good in games, because if a part of the game didnt load, then the game may not work properly!
So we need to dedicate a frame at the beginning of the game to load the whole game parts on and after the loading is done, we will allow the game to start.


Read 2 Comments... >>
Last Updated on Tuesday, 10 February 2009 12:07
Read more...
 
Saving Local Data PDF Print E-mail
Written by Administrator   
Thursday, 22 January 2009 19:53

Ever wanted to save some information about a user like his level number, or last high score, or any other information. Well ActionScript provides a simple way to achieve this. Local data is used to save data into the user's machine such as score,level number,..etc. Below is the simplest example of saving local data on to a users computer.

 

Here is a simple counter that counts how many times did you visit this article on FreshNova!

 

 

Read on to see the source code. The source code is well documented so I believe it is not too hard to understand.



Read 0 Comments... >>

Last Updated on Tuesday, 10 February 2009 10:54
Read more...
 
Protect Your Game From Right Clicks PDF Print E-mail
Written by Administrator   
Thursday, 22 January 2009 11:43

rightclick2

Right click any flash file, a menu will show up with many items, in the middle you will find "Rewind" and "Forward", those two items allows the user to move from frame to frame in the flash file. Well personally I learned it the hard way, I published a game without disabling the right click, and players were basically able to do whatever they wanted in the game. So for those of who youwho want to disable it follow these steps. This will be a bug in the game or an easy cheat for players to jump from level to level if each level of the game has its own frame.


Read 0 Comments... >>

Last Updated on Tuesday, 10 February 2009 12:00
Read more...
 
MindJolt API PDF Print E-mail
Written by Waleed Al Bahrawy   
Wednesday, 21 January 2009 12:14
 

mindjolt

 

MindJolt provides high score api for developers to use in their flash games. They say there are 4 ways to install the API, 3 of them using components and the last one is manually done using action script, lets take a look at them.

Note: If you dont want to deal with adobe extensions jump to step 3.

 


Read 0 Comments... >>

Last Updated on Thursday, 12 February 2009 01:09
Read more...
 
Kongregate API PDF Print E-mail
Written by Waleed Al Bahrawy   
Wednesday, 21 January 2009 06:30

Kongregate shares 25% of the revenue with the developers from their games.


If Kongregate's API is added to the game, 10% will be added to the revenue, if the game is offered exclusively to Kongregate then 15% will be added.

Thats 50% of the game's revenue!!

Steps for installation are onKongregate's API

Enjoy!!

Read 0 Comments... >>
Last Updated on Sunday, 08 February 2009 01:22
 


Archive

 

Categories


Copyright © 2009 FreshNova, by Talha Kalim and Waleed Al-Bahrawy