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.

Topics - zoorroo4

Pages: [1]
games / Penguin! My first game.
« on: Tue, Feb 18, 2014 »
I've just finished my first flashgame. It's called Penguin!, and it's about a penguin.

Play it here. And yes, it's supposed to be hard.

help / Box2d Debug draw.
« on: Sat, Jan 25, 2014 »
I have a problem with the debug draw in flixel. I have added the sprite for the debug draw in my main class like this,

Code: [Select]
                private function addedToStage(e:Event):void
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);

DEBUG_SPRITE = new Sprite();
DEBUG_SPRITE.visible = false;


The debug drawing shows up and is drawn, but with one problem. When the flixel camera moves, the debug sprite moves aswell which is an unwanted sideeffect, i've tried to locate where in the flixel camera updating code this happens but without luck, anyone got any tips for what to do? I've also tried setting the position of the sprite to zero in the update method.

help / Trying to use the flxpreloader.. [SOLVED]
« on: Sun, Jan 13, 2013 »
Solved the problem

help / Flixel saving
« on: Fri, Dec 21, 2012 »
For my project i need to save one array with strings and one number for the total of levels cleared. I donīt quite understand how i would do that.

Can i just add anything to the data parameter in the FlxSave?
Something like
Code: [Select]
save = new FlxSave();
save.bind("mySave"); = 12; = new Array();"A");

Does these items that iīm calling clearedLevels and levelGrades magically exist inside the data object or what?

One other thing i wonder is how i make a button inactive so that the color of it doesīnt change when the mouse goes over it. I got these buttons that are supposed to be disabled. But even though i set the onUp and onOver etc to null and set "on" to false it still changes color when mouse goes over. I tried setting active to false but then the text label disappeared. Any1 got an easy fix for this?

help / Making a tilebased object.
« on: Sun, Dec 9, 2012 »
How can i create an object that loads tiles from a tilesheet.
Basicly i want to create moving platforms, that part is done.
The only issue is the graphics. Iīm passing in different size.
How would i do something like that?

Sort of hard to explain but when you call FlxG.Fade or other functions where you can add a function as a parameter, is it possible to add parameters to that function?

Code: [Select]
FlxG.fade(0xff000000, 1, DoSomething("Now", 1));
Doesīnt work for me, is there some special syntax or is it just impossible?

help / Easiest way to have a game with many levels?
« on: Fri, Dec 7, 2012 »
Whatīs the best way to implement something like that? Should i keep an array of state-classes somewhere? And when one level is complete switch to the next or?

help / Tweening camera with TweenLite?
« on: Mon, Dec 3, 2012 »
How can i tween the camera with tweenlite?
When i try to do it the rendering doesnt update, all thatīs viewed is a black screen.
And then another thing, is there a way to add an onComplete function to a tween?

help / Dynamic collision area in flixel 2.55?
« on: Sat, Dec 1, 2012 »
So i found this example of having a dynamic collision area with FlxG.worldbounds.

In the example it looks like this:

Code: [Select]
override public function update():void
        FlxU.setWorldBounds(-(FlxG.scroll.x), -(FlxG.scroll.y), FlxG.width, FlxG.height);

Now a lot has chaned since this was written, scroll is now on the camera. And worldbound is found in FlxG. That much iīve managed to figure out. Altough when i try this it doesīnt work, no collision seem to take place..

Omg, never mind guys. Iīve managed to fix it. Why are they in the example setting it to negative scrollx and scroll y? When i removed the negative sign it works.

help / FlxEmitter, makegraphic?
« on: Thu, Nov 22, 2012 »
How come thereīs no FlxEmitter.makeGraphic?
Usually I only want a graphic thatīs like 1 or 2 pixels wide and usually only one color. It feels weird going into photoshop, making a 1 pixel big PNG and then embedding it and loading it in with FlxEmitter.MakeParticles..

I suppose i would have to override FlxEmitter and make my own version?

help / FlxEmitter for fire.
« on: Wed, Nov 21, 2012 »
Is there any fire classes out there? Iīm trying to make a simple extension of the FlxEmitter to make a firy effect but i canīt really get it to look good.

Code: [Select]
public class FireFX extends FlxEmitter

public function FireFX(X:int, Y:int, SIZE:int = 0)
super(X, Y, SIZE);
makeParticles(AssetsRegistry.fireParticlePNG, 200, 16, true, 0);

minParticleSpeed = new FlxPoint( -0.5, 0);
maxParticleSpeed = new FlxPoint(0.5, -1.5);

override public function update():void

chat / What do ya think ībout my avatar?
« on: Tue, Nov 20, 2012 »

As the title says. Is it possible to get data from a path layer from dame to flixel. Like parse it into an FlxPath?
Another question is it possible to get tile properties from dame into flixel?

help / How to patrol between an array of points?
« on: Fri, Nov 9, 2012 »
Iīm trying to make an enemy move between a series of points. How would i do that?
And btw sorry for spamming the help section, but well iīm new to flixel and as3..

I want to make the bgcolor go from black to a bluish color as the players y value becomes lower.
How would i do that?

help / Player bounceback when hitting an enemy.
« on: Sun, Oct 28, 2012 »
Code: [Select]
if (Sprite2 is Enemy)
if (!Sprite1.flickering)
if (FlxCollision.pixelPerfectCheck(Sprite1, Sprite2, 255))
// Sprite1 bounce back..
(Sprite1 as Player).hurt(5);


How am i supposed to make him bounce back? Iīve tried by altering the velocity but it doesīnt work.
How would you do it?

Pages: [1]