Gravity: a flash game by Jon Dutko using my tutorials
I am very glad to introduce you Gravity: a flash game by Jon Dutko developed starting from my tutorials.
The game is still in beta so Jon needs feedback.
It’s interesting how Jon designed some levels: growing balls, chasing pentagons, lightnings, mazes… can you beat all 30 levels? (I did it…)
Here it is the explication about how Jon made this game
Jon:
There are four main movie clip instances in -gravity-. hero, which is the movable character; wall, which is where all obstacles, both movable and unmovable; startpoint, the green spawnpoint for the character; and endpoint, the red trigger to move to the next level.
All coding is done under the “hero” movie clip. Bear in mind, I borrow heavily from your original code, tweaking small bits to fit the game. Without further adieu, here is the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | onClipEvent (load) {
yspeed = 0;
xspeed = 0;
power = 0.65;
gravity = 0.1;
upconstant = 0.75;
friction = 0.99;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
xspeed = xspeed-power;
}
if (Key.isDown(Key.RIGHT)) {
xspeed = xspeed+power;
}
if (Key.isDown(Key.UP)) {
yspeed = yspeed-power*upconstant;
}
if (Key.isDown(Key.DOWN)) {
yspeed = yspeed+power*upconstant;
}
yspeed = yspeed+gravity;
_y = _y+yspeed;
_x = _x+xspeed;
_rotation = _rotation+xspeed;
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = _root.startpoint._x;
_y = _root.startpoint._y;
}
if (_root.endpoint.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = _root.startpoint._x;
_y = _root.startpoint._y;
_root.play();
}
} |
…and there you have it. Levels are divided into episodes by 10’s. Episodes are divided by scenes; so far, there are 3 “episode” scenes and one “intro” scene.
Gravity is not done yet; I hope to finish 20 more levels before sending it to the major syndicates (ie newgrounds, addictinggames).
What are you waiting for? Give him feedback and send me your works to have them published on my blog!
They can be easily customized to meet the unique requirements of your project.
13 Responses to “Gravity: a flash game by Jon Dutko using my tutorials”
Leave a Reply
Trackbacks
-
Article Feed » Gravity: a flash game by Jon Dutko using my tutorials on
February 26th, 2007 6:00 pm
[...] Read More Emanuele Feronato [...]
- Get up to $100,000 for your next Flash game with Mochi GAME Developer Fund
- Create a dynamic content animated footer ad for your site in just 9 jQuery lines – 17 lines version
- Sell sitelocked version of your Flash games and even .fla sources to Free Online Games
- Protect your work from ActionScript code theft with SWF Protector
- Create a dynamic content animated footer ad for your site in just 9 jQuery lines
- Understanding Box2D’s one-way platforms, aka CLOUDS
- Triqui MochiAds Arcade plugin for WordPress upgraded to 1.2
- Box2D Flash game creation tutorial – part 2
- 11 Flash isometric engines you can use in your games
- Monetize your Flash games with GamesChart
- Create a Lightbox effect only with CSS - no javascript needed
- Flash game creation tutorial - part 1
- Create a Flash Racing Game Tutorial
- Flash game creation tutorial - part 2
- Make a Flash game like Flash Element Tower Defense - Part 2
- Flash game creation tutorial - part 3
- Make a Flash game like Flash Element Tower Defense - Part 1
- Create a flash draw game like Line Rider or others - part 1
- Triqui MochiAds Arcade plugin for WordPress official page
- Create a flash artillery game - step 1
- Flash game creation tutorial – part 5.2 (4.88/5)
- Create a flash artillery game – step 1 (4.79/5)
- Create a Flash Racing Game Tutorial (4.76/5)
- Create a flash artillery game – step 2 (4.74/5)
- Create a survival horror game in Flash tutorial – part 1 (4.73/5)
- Creation of a Flash arcade site using WordPress – step 2 (4.73/5)
- Flash game creation tutorial – part 2 (4.71/5)
- Flash game creation tutorial – part 1 (4.70/5)
- Create a flash draw game like Line Rider or others – part 1 (4.69/5)
- Creation of a platform game with Flash – step 2 (4.68/5)








Cool game it is verry fun I am also working on a game that is original and fun.
from which link(or button) on the website you submitted your game.I have also made a 2player racing game but I cant find from where to submit??
abhilash: at the moment there aren’t buttons to submit a game.
Send it to me at info(AT)emanueleferonato.com along with some explications like Jon did
emanuele:I didn’t understand what u wrote ‘info(AT)emanueleferonato.com.
An error came ‘invalid page’ or something else.
I mean you should send me your work by email, at info@emanueleferonato.com
I put the (AT) to prevent spam, never mind…
@emaneuele:thanx and sorry for that noob question
i really like the game ! hope it all goes well
nice game but why dont inprove the hittest with the one from linerider tutoriol part 3
cleard all levels =)
this game is tight
J-Duck is a beast
This is a very good game. There are some very original level ideas here, and some clever tweaks in the code to fit your game. I managed to complete it all, so maybe you should make some more, and much harder, levels. This could make the game appeal to more people, as it is a bit easy at the moment. Nevertheless, well done!
i dont get it. What are you supposed to do first? I know you have to draw something first before you can put the code in.
hey that’s some cool game