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

Pages: 1 [2]
help / Re: Clicking out of screen
« on: Wed, Jul 13, 2011 »
I am not really sure but I think this one is:

Code: [Select]
//Focus gained/lost monitoring
stage.addEventListener(Event.DEACTIVATE, onFocusLost);
stage.addEventListener(Event.ACTIVATE, onFocus);

on the FlxGame class line 694

on flixel 2.5 wouldn't youmapname.follow(); do the work?

help / Re: Troubles with loading my tiles for my map
« on: Mon, Jul 11, 2011 »
remove the mimeType = "application/octet-stream" from [Embed(source = "media/dTiles.png", mimeType = "application/octet-stream")] public static var tiles:Class;
I think that would work.

help / Re: Some more newb issues :)
« on: Mon, Jul 11, 2011 »
Probably adding super.create(); at the bottom of create function.

help / Re: Flixel Power Tools
« on: Mon, Jul 11, 2011 »
Is there a way that the members from one flxgroup follow the members of other flxgroup?

help / Re: mouse click coordinates and FlxCamera
« on: Mon, Jul 11, 2011 »
hmm my FlxG doesn't seem to have the scroll property or what it's called, i get an error message when i put FlxG.scroll.x in my code
C:\Users\Anders\Desktop\project\bodygame\src\Classes\ col: 31 Error: Access of possibly undefined property scroll through a reference with static type Class.
Sorry my mistake what I meant was this:

Code: [Select]
var mouseCordX:Number =;
var mouseCordY:Number =;

if you trace it will give you 0 always, but will give you the actual position of the camera on the stage.

help / Re: mouse click coordinates and FlxCamera
« on: Mon, Jul 11, 2011 »
I don't know if this can help, but I am just taking this from what I think it could work

Code: [Select]
var mouseCordX:Number = FlxG.scroll.x+FlxG.mouse.x;
var mouseCordY:Number = FlxG.scroll.y+FlxG.mouse.y;

I hope it works

help / Re: Enable Mouse on FlxState
« on: Sun, Jul 10, 2011 »
Adding; on your gaming state could work.

Thanks a lot, I was really having trouble with that problem

I don't know of any tutorial for playing flixel on a mobile device but I've been doing a lot of prototypes on a blackberry playbook and the run ver smoothly. I think if you could show which errors are showing we could help you.

help / Shaking tilemap
« on: Mon, Jul 4, 2011 »
Hello, i don't know if anyone else has this problem, I am doing a scrolling game that is running constantly. I am using FlxTilemap to create the map and when the game start running the movement looks jumpy.

help / Re: Flixel Power Tools
« on: Wed, Jun 29, 2011 »
I have a question about FlxWeapon. How can i detect the overlapping of a bullet with another object?

//EDIT: Nevermind I just read the FlxWeapon class and it was written there..

help / Re: Add Event Listener to a FlxSprite
« on: Fri, Jun 17, 2011 »
I want to click over the sprite and execute a function.

help / Add Event Listener to a FlxSprite
« on: Fri, Jun 17, 2011 »
Does anyone know how can I do this, I've tried this.addEventListener in the same sprite class, but it gives me error, also used FlxG.stage.addEventListener, but i want to do it like _player.addEventListener  _player being a FlxSprite.

Some games are better to be made on a native lenguage because of the performance. But if you are doing a simple game that doesn't require much resources you can code it in as3 and just pack it in Flash cs5 or Flash Builder ( which is a better option if you want to do this), it will run as decent as a native lenguage. This goes for every mobile device you aim.

chat / Re: Introductions
« on: Sun, Jun 12, 2011 »
Hi! my name is Felipe, I work at a company in Chile making mobile games. Recently I started working with the flixel library for some android and playbook games.

Pages: 1 [2]