Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - caladan21ph

Pages: 1 2 [3]
41
help / setting boundaries for games
« on: Tue, Nov 1, 2011 »
How do I limit the area in which my player can move? I tried using FlxControl.player1.FlxControl.player1.setBounds but the player still moves out of the screen. Thanks!

42
help / Power tools question
« on: Tue, Nov 1, 2011 »
Hello! This is a totally noob question. sorry. I'm trying to learn how to use the power tools and I noticed that sometimes(in the tests suit) FlxG.getplugin was used and sometimes it was not. In what instances is getplugin used?

Thanks!

43
help / Re: Loading map using Dame
« on: Mon, Oct 31, 2011 »
It worked after I changed versions, but now I'm confused which version is which. One of the version used switchstate() to change state the other I just assign a new Flxstate. Which version is better? Thanks!

44
help / Re: Loading map using Dame
« on: Mon, Oct 31, 2011 »
Hi! Here they are:

C:\Game Dev Projects\Flash Projects\FlixelGame\src\BaseLevel.as(26): col: 32 Error: Access of possibly undefined property RIGHT through a reference with static type Class.

C:\Game Dev Projects\Flash Projects\FlixelGame\src\BaseLevel.as(27): col: 38 Error: Access of possibly undefined property LEFT through a reference with static type Class.

C:\Game Dev Projects\Flash Projects\FlixelGame\src\BaseLevel.as(27): col: 55 Error: Access of possibly undefined property RIGHT through a reference with static type Class.



//Code generated with DAME. http://www.dambots.com

package
{
   import org.flixel.*;
   public class BaseLevel
   {
      public var masterLayer:FlxGroup = new FlxGroup;

      public var mainLayer:FlxTilemap;

      public var boundsMinX:int;
      public var boundsMinY:int;
      public var boundsMaxX:int;
      public var boundsMaxY:int;

      public function BaseLevel() { }

      public function addSpriteToLayer(type:Class, group:FlxGroup, x:Number, y:Number, angle:Number, flipped:Boolean, scrollX:Number, scrollY:Number, onAddCallback:Function = null):FlxSprite
      {
         var obj:FlxSprite = new type(x, y);
         obj.x += obj.offset.x;
         obj.y += obj.offset.y;
         obj.angle = angle;
         // Only override the facing value if the class didn't change it from the default.
         if( obj.facing == FlxObject.RIGHT )
            obj.facing = flipped ? FlxObject.LEFT : FlxObject.RIGHT;
         obj.scrollFactor.x = scrollX;
         obj.scrollFactor.y = scrollY;
         group.add(obj);
         if(onAddCallback != null)
            onAddCallback(obj, group);
         return obj;
      }

   }
}

45
help / Loading map using Dame
« on: Mon, Oct 31, 2011 »
Hi! I've been following this tutorial: http://www.brighthub.com/hubfolio/matthew-casperson/articles/105276.aspx

But after doing everything on it I'm getting something like "build halted with errors". Anyone have an idea what could be the problem?

Thanks!

46
Would you guys recommend Flash Game University for learning some AS3 and game programming concepts?

47
help / Re: Problem with the tutorial
« on: Thu, Sep 8, 2011 »
Fixed it!I just pointed to the Flixel folder(the one with org inside). I though I had to put org for the class path.Thanks anyways! :)

48
help / Problem with the tutorial
« on: Thu, Sep 8, 2011 »
Hi!  was doing the hello world tutorial and got this error:

C:\Game Dev Projects\Game Engines\Flixel\org\flixel\FlxGame.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'org.flixel'.
Build halted with errors (fcsh).

I found out about the solution to comment out line 34 but all I got were other errors.

How do I fix this?

Thanks!

49
help / Re: An important question about my Flixel book
« on: Mon, Sep 5, 2011 »
A physical book with  content online in a website with an access code or something. :)

50
Ok, thanks for the answers! I've been trying to look for info regarding making games using just actionscript and can't seem to find any.Are there any free ebooks out there you can recommend(like Think Python) for actionscript?

51
Hi!I'm just starting Flash game development. My question is what do I need to know to start making
games using this Engine? Is it necessary for me to have mastered actionscript? Is it better if I learn to use the Flash IDE first and get familiar with the stage?

Thanks! :)

Pages: 1 2 [3]