Play the games, create the levels

Topic, Help Me With ActionScript3 Topic

Checkout our iPhone & iPad games!

You must register or log in to post a message.

jasperpostema 13 years ago
  And I want to make a grid. Does anyone know how to make grid?
jasperpostema 13 years ago
  This could be the ThunderBat
jasperpostema 13 years ago
  Ah there is something wrong, it doesn't tkae the \-button :(
jasperpostema 13 years ago
  Maybe you could make pictures of it and show them :)
BTW I like your game, it's like BB
allyally 13 years ago
  Changed it. Just add it to your code. Just change the bold bits.
jasperpostema 13 years ago
  Error: A file found in a source-path 'Main' must have the same name as the class definition inside the file 'BitmapExample'.
Build halted with errors (fcsh).
allyally 13 years ago
  Thats the name of the class. Ignore it. youll want the functions.
gundu 13 years ago
  I think it's okay, We all have to learn somewhere. Something I should have done xD
jasperpostema 13 years ago
  What to put in BitMapExample, sorry I ask so much, I am 12 /:)
allyally 13 years ago
  public function loadBitmap(bitmapFile:String) {
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadingDone);
var request:URLRequest = new URLRequest(bitmapFile);
loader.load(request);
}

private function loadingDone(event:Event):void {
*your image* = Bitmap(event.target.loader.content);

}
manufan 13 years ago
  Once again Jasper - AS3 is not a program, batch file nor operable command. You have Flash Develop and Flex SDK Framework for not and AS3.
jasperpostema 13 years ago
  Flash develop, flex SDK, AS3
allyally 13 years ago
  Jasper, are you using flash?
SimonM 13 years ago
  The tutorial isn't wrong, just reread it and you'll find your fault. You're probably doing an error in flashdevelop.
jasperpostema 13 years ago
  Error: Embed is only supported on classes and member variables.

Is what I get

And if I make it "embed" there is something wrong with the EmbedImageTutorial. If I make that embedImage...... it is also fault :(
SimonM 13 years ago
  :/ the "ThunderBats.jpg" needs to be the full place where the image is in. "C:\blah\blah\Thunderbats.jpg"
it's best you use flashdevelop, no plain text editors
jasperpostema 13 years ago
  Simon, I have this:
package
{
import flash.display.Bitmap;
import flash.display.Sprite;


/**
* ...
* @author Jp
*/
public class EmbedImageTutorial extends Sprite {
[Embed(source = "ThunderBats.jpg")]
public var myImage:Class;
public function EmbedImageTutorial() {
var imageCircle:Bitmap = new imageCircle();
imageCircle.x = 50;
imageCircle.y = 25;
addChild(imageCircle);
}

}
}

What's wrong, because it doesn't work, I have a JPG titled Thunderbats, but didn't help here :(
SimonM 13 years ago
  I use flex, and I'm not very experienced, I started learning AS3 a year ago.
manufan 13 years ago
  No Jasper. You don't ONLY have AS3. AS3 isn't an operable command, batch file or program. Flash CS5 is the program. And in actual fact there is an Actionscript 2.0 (fla) file mode in it. Unless, your using Flex SDK you're making very feeble excuses.

BTW, Flex is for VERY EXPERIENCED developers and not 'newbies' like you. So get something like Flash CS5.

I'm not trying to offend you, I'm trying to help you.

manufan1.
SimonM 13 years ago
  you can embed pictures into an AS3 project
this
jasperpostema 13 years ago
  Wow! That's really good. Now I have to set those pictures in AS3-language
neoseanner 13 years ago
  you always use that frog , icy frog. can someone release my limitation, i'm not free here. by the way , this is the bat , i draw it with paint  i named it bad bat :P electric element
and one the fruit  i named it superfruit ( effect is like yours )
jasperpostema 13 years ago
  From above it looks like A purple wall
jasperpostema 13 years ago
  Pitty I only have AS3 :(
Coolguy52 13 years ago
  You will need the hitTest function (this is in AS2):


onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
this._x-=5;
}
if(Key.isDown(Key.RIGHT)){
this._x+=5;
}
if(Key.isDown(Key.UP)){
this._y-=5;
}
if(Key.isDown(Key.DOWN)){
this._y+=5;
}
if(character_mc hitTest(wall_mc){
gotoAndStop(2);
}

And On Frame Actions 1:
stop();
Charcater on frame 2:
Excatly same code disable the direction in which you would need to move to go through the wall.
Frame Actions 1:
stop();

Variable names should be character_mc for character and wall_mc for the wall. Hope this helps!

Courtesy of manufan1.
jasperpostema 13 years ago
  To begin I'll take the second (the one with the bricks). Nice!

[edit] It's a game from above. You see the back of the bat, the top of the blocks (walls)
[edit2] Could you tell me how to get that in AS?
neoseanner 13 years ago
  i have two picture for the wall  this one for the top and  this one for centre
jasperpostema 13 years ago
  Lol gundu, My Little Pony, but how to post the sprite in AS?
gundu 13 years ago
  You make the sprite for them, But in my case I search for AS2 tutorials... In french...
jasperpostema 13 years ago
  If someone could help me with making purple blocks (for walls).
PS: walls could also be grey!

[<<] [1] [2] [3]

Flash game development

First post of the topic

jasperpostema 13 years ago
  Thunderbats
Hello people, I am learning AS3 these days, but I can't find any good "lessons". So I am asking you to link me some good sites or learn it me in chat or other alternatives, so I can make fun things with AS3 =). These things are what I need:

All I want to make
- A flying bat (wapping wings)
- Fruit
- Purple walls
- Thunder

Rules of all I want to make
- The bat can't go through the walls
- if bat picks fruit, it will disappear
- Thunder can roast fruit, but NOT the bat
Our free flash games   Games for your site   Games for your iPhone   Contact   Twitter @jpsarda & @bonuslevelorg