HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

[Hindi] How to create 2D flash Game Tutorial - Part 1

21,892 views October 25, 2019 24:19

Watch on YouTube
ChannelBuzz2day Tech

Description from the creator

Doston ye video ek tutorial hai, agar ap bhi chahte hai game create kaise karte hai sikhna to is video ko dekhein or janein ki kaisi script or tools ka use kiya jata hai kaise logics ka use kiya jata hai...
[Hindi] How to create 2D flash Game Tutorial - Part 1

#Howto #Game #Animation #FlashGames #PCGames
@Buzz2DayTech
Software Used : Macromedia Flash 8.0
Programming Used: Action Script 2.0
____________________________________________________________
Character Coding/Script :
onClipEvent (load) {
var ground:MovieClip = _root.ground;
var grav:Number = 0;
var gravity:Number = 2;
var speed:Number = 7;
var maxJump:Number = -12;
var touchingGround:Boolean = false;
}
onClipEvent (enterFrame) {
_y += grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y -= gravity;
grav = 0;
}
if (ground.hitTest(_x, _y+5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
}
if (Key.isDown(Key.LEFT)) {
_x -= speed;
}
if (Key.isDown(Key.UP) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x+(_width/2), _y-(_height/2), true)) {
_x -= speed;
}
if (ground.hitTest(_x-(_width/2), _y-(_height/2), true)) {
_x += speed;
}
if (ground.hitTest(_x, _y-(height), true)) {
grav = 3;
}
}

-------------------------------------------------------------------------------

Download Script in Notepad File: goo.gl/CDxrqo

---------------------------------------------------------------------------------------------
Watch Part-2 : youtube.com/watch?v=vsVUMb9Eqns

Watch Other Videos Also :

How to create game using notepad : youtube.com/watch?v=ZeRHh2wXpLc&t=17s

How to create software:
youtube.com/watch?v=XlvaluIWB8Q&t=557s

How to Create analogue Clock using Flash Animation :
youtube.com/watch?v=PE1O18MYr5M&t=1s



Description:
#Buzz2Day Tech

►► Join Facebook Group for your Queries:
facebook.com/groups/b2dtech/

Social Media:
Subscribe ► goo.gl/YWVPKH
Facebook ► goo.gl/P4pq8q
Twitter ► goo.gl/vl7Nj5
Instagram ► goo.gl/0Uuqr8
Google+ ►goo.gl/S0JNlq

About this tutorial

Buzz2day Tech published this 24:19 video tutorial on October 25, 2019. It has been watched 21,892 times on YouTube.

Duration
24:19
Published
October 25, 2019
Views
21,892
Likes
438

Tags

Share

Further reading

This tutorial in other languages