TSR > Le jeu qui croque l’actu | nouvo.ch
Just a little interview about me and my game, La main de Thierry Henry, by the swiss TV (TSR):
Le jeu qui croque l’actu | nouvo.ch.
In: News · Tagged with: benoit freslon, interview
Nano War 2.0 private beta test
Your are welcome to test my new game Nano War 2.0. Indeed it’s the sequel of Nano War released in may 2008.
New gameplay, new graphics, new music, new AI, new cells, …
If you want to test the private beta click here to play Nano War 2.0 beta and use this password : beta
EDIT: The new version “beta 2 is available”.
Dont forget to report any bugs, errors and feedbacks on the forum.
In: News · Tagged with: flash, game, Nano War, stategy
Orient an object to the mouse cursor
How to orient an objet to an other ?
Just put those lines and change the instance name myTank.
// This object will always look at the mouse cursor myTank.addEventListener(Event.ENTER_FRAME, tankEnterFrame); // This function will be launched every frame (25 times by seconds) function tankEnterFrame(pEvt) { // pEvt.currentTarget : myTank var mc=pEvt.currentTarget; // Get the radian angle between the tank and the cursor // You can also replace mouseX and mouseY by another coordinates var angleRadian=Math.atan2(mouseY-mc.y,mouseX-mc.x); // Convert the radian angle in dedree var angleDegree=angleRadian*180/Math.PI; // Set the orientation mc.rotation=angleDegree; // Display angle of rotation in degree txtAngle.text=Math.round(angleDegree)+"°"; }
Download the source code here :
[www.thisisgameplay.com]_Orient_object_to_mouse_cursor.fla
In: ActionScript, tutorial · Tagged with: actionscript 3, mouse, orientation
How to make a game like Jetman – step 1 – The Jetman
In my first tutorial I will show you how to make a flash game like Jetman.
A simple very famous casual game on facebook and very addictive.
1. First of all you have to download the Adobe Flash IDE: Adobe Flash CS3 or Adobe Flash CS4
We will code the game with ActionScript 3.0 (the programming language of Flash) so you need Adobe Flash CS3 at least.
You can download the free trial version of Adobe Flash here (Mac or Windows) : https://www.adobe.com/cfusion/tdrc/index.cfm?loc=en&product=flash
2. Create your document
- Open Flash.
- Create a new ActionScript 3.0 document.
- On the properties set the framerate to 25fps.
- And set the background color to black.
3. Create Jetman MovieClip
Flash uses graphic objects called MovieClip. So we have to create the Jetman’s MovieClip.
- Click on the Rectangle tool on the tools bar. (on the left)
- Then drag and drop on the stage to create a rectangle about width:50px and height:15px (you can modify your shape dimentions later).
- Select all your shape including the border. You can also use a double click.
- Do a right click on your selected shape and click on Convert to Symbol.
- Write this symbol’s name : Jetman (not jetman or JETMAN).
- Then click OK.
Now you can see your Symbol Jetman into your Library (on the right). If you don’t see the Library Press F11 key.
You have 1 instance of the Jetman symbol on your stage. Good. We just created a MovieClip.
In order to interact with the jetman MovieClip with ActionScript, we have the rename the instance’s name on the stage.
- Click on the Jetman’s instance on the stage.
- Then go to the properties on the bottom and set the instance’s name to jetman (not Jetman or JETMAN) it’s very important.
It’s done! Now we can move the instance with ActionScript.
4. Starting to code
You have differents ways to code with ActionScript. We will use the easier. (Coding into layers)
- Create a new layer on the timeline (Click on the button on the left bottom corner).
- Put the layer on the top: drag and drop the layer.
- You can rename the layer with a double click or Right Click then rename.
- Then select the first frame (here in black).
- Finally go to the windows menu > Actions or press the F9 key.
A new windows is opening : The Actions window. We will to write all our code here.
- Copy and paste this Actionscript 3 code (After codinf into your layer you should see a little a into this frame):
// Please don't remove this comment. // Code by Benoit Freslon. // Tutorials, Flash games: // http://www.thisisgameplay.com // ////// Game balance // Jetpack's boost speed var speedBoost = -4; // Gravity var gravity = .8; // Speed limit var speedMax = 5; ////// Global variables don't touch those one // Jetman is using his jetpack ? var boost = false; // Jetman's current speed var speed = 0; // 25 times by seconds this function will be launched function jetmanEnterFrame(pEvt) { // If boost == true if (boost) { // The speed changes speed = speedBoost; } else { // Else the gravity decrease jetman's speed speed += gravity; } // If the current speed is to hi if (speed > speedMax) { // Limit the speed speed = speedMax; } // If the current speed is to low else if (speed < -speedMax) { // Limit the speed speed = -speedMax; } // Every frame jetman will move vertically. (y axis) jetman.y += speed; // If jetman is out of the screen if (jetman.y > 450) { jetman.y = 100; } } // Add a event listener to launch the jetmanEnterFrame function every frames jetman.addEventListener(Event.ENTER_FRAME, jetmanEnterFrame); // If the mouse is pressed function mouseDown(pEvt) { // Set boost to true boost = true; } // Id the mouse is released function mouseUp(pEvt) { // Set boost to false boost = false; } // Detecting the mouse inputs (MOUSE_DOWN and MOUSE_UP) on the entire "stage" stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown); stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
- Finally test your game. (hit CTRL+ENTER)
You should see that:
Download the source file here:
[www.thisisgameplay.com]_Jetman_step1.fla
Download the compiled file here:
[www.thisisgameplay.com]_Jetman_step1.swf
Next step the level design… ;)
In: ActionScript, Game Design, tutorial · Tagged with: actionscript 3, flash, Game Design, jetman, tutorial
La main de Thierry Henry Le jeu flash
J’ai vu ce matin en me levant que le match d’hier soir France – Irlande (pour les qualificatifs de la coupe du monde 2010) avait fait un énorme buzz sur Internet.
Ni une ni deux j’ai sauté sur l’occasion pour faire un mini jeu réalisé en 6 heures.
Pour jouer c’est ici : Jouer à La main de Thierry Henry le jeu de main.
Un nom de domaine spécialement pour l’occasion : www.lamaindethierryhenrylejeu.com
Hello
The hand of Thierry Henry is a huge Internet success today so I made a little funny game on this. (France – Ireland)
Pour jouer c’est ici : The hand of Thierry Henry the game
Edit : http://videos.tf1.fr/infos/zap-net/le-zap-net-du-vendredi-20-novembre-2009-5551268.html
Translate my games in german, russian, chinese, …
Hello everyone I’m looking for nice people who want to help me to translate my games in different languages:
English (found), german, chinese, japanese, italian, spanish, russian, polish, portuguese, czech, danish, dutch, finnish, hungarian, korean, norwegian, swedish, turkish, etc.
You are welcome to send me a message here with an introduction about yourself:
http://www.thisisgameplay.com/contact-benoit-freslon
Thanks to all people who help me.
Flash CS5 builds Iphone applications
Flash Professional CS5 will enable you to build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store.*
A public beta of Flash Professional CS5 with prerelease support for building applications for iPhone is planned for later this year. Sign up to be notified when the beta starts.
At MAX 2009, Adobe showed a number of applications and games for iPhone that have been built using a prerelease version of Flash Professional CS5. These applications are available now for you to download from the Apple App Store.
Go to the official article on labs.adobe.com: http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/#divider
In: ActionScript, Flash, iPhone · Tagged with: ActionScript, flash, iPhone
Take something literally, new concept, and new community
In this game you don’t kill zombies or nazies. You don’t build tower to stop monsters. You just use your brain and all your environement :
mouse, keyboard, monitor, webcam, microphone, printer, your fingers, your eyes, your body, etc.
Take something literally is a complilation of 25 enigmas.
This game is an abstract, conceptual and original and game because nodoby has ever dared to design a game like that in flash.
The rules are quite simple. Take the hints literally and just think. The solution is always near you. Be aware of your environement. Everybody can play and enjoy this game, You don’t have to be an hardcore game…
Have fun
In: Flash, Game Design, Games, News · Tagged with: abstract, enigma, literally, puzzle, something, take
Roll And Jump released
I’m proud to present you my last game: Roll And Jump. The game was designer for Iphone and IPod Touch.
If you are interrested in to play this game on your Iphone please contact me.
You can play here for free on your web browzer here:
Have fun!
In: ActionScript, Flash, Game Design, Games, iPhone
New game, new gameplay, Roll and Jump
Roll and Jump is a skill game where the goal is to climb as high as possible by jumping from a rolling circle to another.
Clim and do the highest score as possible.
You can do a wall jump, a double jump or activate slow motion!
The game will be released in few days on the web i hope to bring it on iphone as soon as possible.
In: Flash, Game Design, Games, iPhone · Tagged with: ActionScript, flash, Game Design, iPhone, skill game






















