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 - Esti

Pages: 1 ... 4 5 [6]
101
I add my enemies(enemy class) into a group(enemies) and I want to use overlap to call a function that is inside the enemy class.
Quote
FlxG.overlap(player, enemies, posesion);

then

Quote
protected function posesion(Sprite1:FlxSprite, Sprite2:FlxSprite):void
      {
      
      if (Sprite1 is Player && Sprite2 is enemy)
      {
      
              //call a function here like enemies(Sprite2).doSomething();
      
      }

Is there a way to do this? Thank you.

102
releases / Re: Pixel-Perfect Ray Casting Code
« on: Thu, Jan 19, 2012 »
That's a great piece of code!.

I need some help, I've been trying to implement laser beams in my game but I don't understand how do you implement this;

Quote
1   graphics.lineStyle(1, 0xFF0000, 0.75); // thickness, color, alpha
2   graphics.moveTo(x1, y1);
3   graphics.lineTo(x2, y2);

I am using the basic project template for platform games made by photonStorm. I have a Sprite that is going to shoot some lasers and I would like to implement the logic inside the update method of it. What do I need to import, can you throw me some light? :)

Thank you very much!

103
games / Re: Sleigh Run [Finished]
« on: Tue, Jan 17, 2012 »
Congratulations on your first game.

104
games / Re: / ESCAPE \ ported to iOS/Android with AIR
« on: Tue, Jan 17, 2012 »
Great game ;D

Pages: 1 ... 4 5 [6]