Flash Tutorial Request Thread

  • (2 Pages)
  • +
  • 1
  • 2

22 Replies - 29566 Views - Last Post: 03 October 2014 - 06:20 PM

#16 chinchang  Icon User is offline

  • Indie Game Developer
  • member icon

Reputation: 192
  • View blog
  • Posts: 725
  • Joined: 22-December 08

Re: Flash Tutorial Request Thread

Posted 04 July 2010 - 08:04 AM

Hello everyone,

I have recently written my first flash game tutorial on my blog. Plz do read and comment on it.

tutorial : http://pro-gram-err....ake-simple.html
Hope it helps new game developers. :)

thanx.
Was This Post Helpful? 0
  • +
  • -

#17 SmaJLe  Icon User is offline

  • New D.I.C Head

Reputation: 7
  • View blog
  • Posts: 21
  • Joined: 06-November 07

Re: Flash Tutorial Request Thread

Posted 08 September 2010 - 10:57 PM

View PostLaursen, on 30 June 2010 - 11:40 AM, said:

I recently did an Accordion Menu in Flash, if you guys know what that is. I've been thinking about maybe doing a tutorial on it, because it really is rather simple and looks great!

If anyone's interested that is?


i'd love that, especially AS3 version. I've seen a lot of examples in the internet, but most of them are either AS2, or XML...
I tried converting menus from here http://www.senocular...urce/?entry=713 from AS2 to AS3 :red_indian:
but AS2 and AS3 are pretty different, therefore a full tutorial would be just great :)
Was This Post Helpful? 0
  • +
  • -

#18 ifsogirl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 15-March 08

Re: Flash Tutorial Request Thread

Posted 11 September 2010 - 06:44 AM

Okay, I'm making a flash game; a very basic shooting game. Everything works so far, but I want to take it a step further. I want my 'targets' (there is one that gives you points and one that takes them away) to actually move on the screen. Unfortunately, my teacher never went over this with me. I could really use a tutorial on randomly moving objects, or at least some suggestions on how to get started. This is what I have:

//ifsogirl
//Shooting Game (GAME210 final)
//Sept. 11, 2010

stage.addEventListener(Event.ENTER_FRAME, gameLoop);
stage.addEventListener(MouseEvent.CLICK, shoot);
				   			   
var radians:Number;
var degrees:Number;
var speed:Number = 10;
var score:int = 0;

//##############################################
//Woodward (Game Loop)
//##############################################
function gameLoop(e:Event)

{
	followMouse();
}

//##############################################
//Follow Mouse Function
//##############################################
function followMouse():void
{
	radians = Math.atan2(mouseY - player_mc.y, mouseX - player_mc.x);
	degrees = radians / Math.PI*180;
	player_mc.rotation = degrees + 90;
}

//##############################################
//Shoot Function
//##############################################
function shoot(e:MouseEvent):void
{
	var Bullet:bullet = new bullet();
	Bullet.rotation = degrees;
	Bullet.x = player_mc.x;
	Bullet.y = player_mc.y;
	addChild(Bullet);
	Bullet.addEventListener(Event.ENTER_FRAME, moveBullet);
}

//##############################################
//Move Bullet Function
//##############################################
function moveBullet(e:Event):void
{
	var rads:Number=e.target.rotation*Math.PI/180;
	e.currentTarget.x += Math.cos(rads)*speed;
	e.currentTarget.y += Math.sin(rads)*speed;
	
	if (e.target.hitTestObject(target_mc))
	{
		UpdateScore(1);
		e.target.removeEventListener(Event.ENTER_FRAME, moveBullet);
		removeChild(MovieClip(e.target));
	}
	if (e.target.hitTestObject(badStuff_mc))
	{
		UpdateScore(-1);
		e.target.removeEventListener(Event.ENTER_FRAME, moveBullet);
		removeChild(MovieClip(e.target));
	}
}

//##############################################
//Score Function
//##############################################
function UpdateScore(i:int)
{
	score += i;
	textyBox_txt.text = String(score);
	if(score <= 0)
	{
		DEATH();
		if(i <= 0)
		{
			score -= i;
		}
		else
		{
			score += i;
		}
	}
}

//##############################################
//Death Function
//##############################################
function DEATH()
{
	textyBox_txt.text = "YOU FAIL."
}


I have no idea where to even start with this, except I think it would be a new functiona and something that would go in the Game Loop. If it would help, I'll attach the file in another post. Any recommendations would help, please.

This post has been edited by ifsogirl: 11 September 2010 - 06:49 AM

Was This Post Helpful? 0
  • +
  • -

#19 SmaJLe  Icon User is offline

  • New D.I.C Head

Reputation: 7
  • View blog
  • Posts: 21
  • Joined: 06-November 07

Re: Flash Tutorial Request Thread

Posted 13 September 2010 - 06:55 AM

View Postifsogirl, on 11 September 2010 - 05:44 AM, said:

I have no idea where to even start with this, except I think it would be a new functiona and something that would go in the Game Loop. If it would help, I'll attach the file in another post. Any recommendations would help, please.


How about you add "clock" to your game? To be more precise, in this flash game tutorial here: http://gamedev.micha...ame-tutorial-1/
the person is using tick() to keep the game mooving. Try reading first one or two parts, you'll get what i mean :)

I'm more like a beginner with flash myself, but I think moving objects to random or defined locations using tick() should be easy. :rolleyes:
Was This Post Helpful? 1
  • +
  • -

#20 Aeternalis  Icon User is offline

  • D.I.C Regular

Reputation: 28
  • View blog
  • Posts: 291
  • Joined: 13-July 09

Re: Flash Tutorial Request Thread

Posted 13 October 2010 - 09:24 AM

I would be very interested in seeing a tutorial in AS3 that covers getting data from a SQL Server Database into Flash by using ASP.NET web pages and their C# ADO.NET database connections.

Also would be interested in a tutorial on FLASHVARS and how to use them to transfer data to FLASH.
Was This Post Helpful? 0
  • +
  • -

#21 Battlefield  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 14
  • Joined: 18-November 10

Re: Flash Tutorial Request Thread

Posted 13 January 2011 - 07:28 AM

Heya, can someone post or find for me a tutorial of "How-to create an interactive intro"? I mean, with effects, from 0, and then a button or buttons created by you to enter in the website or forum.

Thanks and greetings!
Was This Post Helpful? 0
  • +
  • -

#22 Braber01  Icon User is online

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 250
  • Joined: 29-November 08

Re: Flash Tutorial Request Thread

Posted 18 March 2012 - 05:35 PM

How about a getting started with Flex type of tutorial games or anything.
Was This Post Helpful? 0
  • +
  • -

#23 Affan07  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 30-September 14

Re: Flash Tutorial Request Thread

Posted 03 October 2014 - 06:20 PM

View PostAeternalis, on 13 October 2010 - 09:24 AM, said:

I would be very interested in seeing a tutorial in AS3 that covers getting data from a SQL Server Database into Flash by using ASP.NET web pages and their C# ADO.NET database connections.


This please.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2