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

Pages: 1 2 [3] 4 5 ... 23
My Bullet class actually extends FlxSprite and looks like this:
I'm not sure if it extending flxsprite makes a difference. Should I re-write it as a FlxObject?
FlxSprite extends FlxObject, so no need.

How do people usually kill bullets when they collide with their groundMaps?
I use a method similar to what Arkeus described.  Overlapping and a custom callback function which calls kill().

UPDATE: I can get it to compile without error using a callback function like:

private function bulletKill(_bullets:Bullet, groundMap:FlxTilemap):void
You changed it from expecting a FlxObject to expecting a Bullet, so this makes sense.

But then it freezes when it gets to the level after a second or so.
Hard to say why, really.  I'd say definitely post your PlayState, and maybe someone can spot the problem.

You are passing a FlxObject when a Bullet is expected.  Assuming Bullet extends FlxObject somewhere down the line, then you can cast it to a bullet using the as keyword: myBullet as Bullet

It should be executing startMapState(), in which you disable the cursor and then switch states to MapState.  Neither of those things happen?

Try putting in a call to the log to see if it's even executing startMapState().  You can just put FlxG.log("Inside startMapState()"); inside startMapState(), then looking in the log (hit `/~).  If it's in there, then something fishy is happening.  If not, then it's just not getting there for some reason.

help / Re: Question about the 2.50 replay feature
« on: Fri, May 6, 2011 »
If you base everything off a seed number, then you can just store that number.  Otherwise you'd have to store the location of all objects that would be otherwise randomly placed.

help / General Help Resources
« on: Wed, May 4, 2011 »

Getting Started

Using FlashDevelop

Using FlashBuilder

Using MXMLC (command line)

If any links are broken or out-of-date, or if you want something added to the list, please send me a private message with your changes!

help / Re: Flixel 2.50 Flashdevelop Template
« on: Wed, May 4, 2011 »
Well it's already linked on the download page, so it should be easy to find.

games / Elidia
« on: Sun, May 1, 2011 »

Elidia is a game I made for Ludum Dare 20, a 48 hour game making competition.  The theme for the competition was "It's Dangerous to go Alone!  Take this!"

Many people went for very Zelda-inspired games, but I wanted to do something completely different!  Elidia is an endurance game where your goal is to last as long as possible.  You get items at regular intervals which will help you to survive.

If you participated in Ludum Dare, you can vote on the game here.

Let me know what you think!  I won't be able to update the game while the competition is running, but I will definitely be adding a lot more polish over time.

chat / Re: Ludum Dare 20
« on: Sun, May 1, 2011 »
I'm sad that it's over!  But oh well, now we can all look at some awesome games.

This was a very good LD for me.  I managed to make a game that is fairly complete, which is actually a first for me.  Mostly I make the beginning of things and then get distracted.

Try out my game, Elidia!  It's made with 2.5, and you can even get the horrible source if you want!

If you made a game for LD, make sure to share a link!

chat / Re: Ludum Dare 20
« on: Fri, Apr 29, 2011 »
The final theme is...
It's Dangerous to go Alone!  Take this!

chat / Re: Ludum Dare 20
« on: Fri, Apr 29, 2011 »
Half an hour!  Gogogogogooooo!

chat / Re: Ludum Dare 20
« on: Thu, Apr 28, 2011 »
So, this starts tomorrow!  Everyone excited and prepared?!

If you haven't already, go and vote on the themes you like best!  The top theme will be announced when the competition begins.

Good luck, everyone!

releases / Re: v2.50 released!
« on: Wed, Apr 27, 2011 »
Really digging the new site!  Definitely agree with Geti that the forum link should be more prevalent, though, since you can find so much here.

Is anyone working on making the forum match yet?  It wasn't too difficult last time, so I could do it if needed.

help / Re: Flixel 2.50 Flashdevelop Template
« on: Wed, Apr 27, 2011 »
I said it in IRC, but I'll say it here, too: great work!  I usually just copy over an old project (beats using, but a built-in template is a lot better!

help / Re: Helicopter game help?
« on: Mon, Apr 25, 2011 »
Sorry, looks like your link got automatically marked as spam.  Unmarked now!

help / Re: starfield
« on: Mon, Apr 25, 2011 »

help / Re: Bug when changing states
« on: Fri, Apr 22, 2011 »
I doubt this is related to changing states at all, but just that the text isn't getting displayed for some reason.  So, here's a few questions:
  • Does other text show up?  Try hitting `/~ and see if you can read things in the console.  If not, there is probably a problem loading the font.
  • If you add a FlxSprite or something, does it show up?  If not, there could be some reason why objects aren't getting displayed correctly.

Some things to consider:
  • You shouldn't have to get a String value of level with toString, since it's already a String.
  • Do you really need an extra state for this?  You could just have a fully opaque black rectangle over the screen with the text on it--then you could even do some kind of transition to the level behind it!

help / Re: Display system cursor
« on: Fri, Apr 22, 2011 »
It definitely doesn't need to be in update(), so my guess is that you're setting it to show before flixel hides it.

Where exactly do you have it right now?  Inside your state's constructor should be a great spot.

help / Re: is down?
« on: Fri, Apr 22, 2011 »
It's definitely a server-side issue.  I'm guessing it happened when it got hacked a few days ago.

Try searching Google with the address and you should be able to look at a cached version.

help / Re: Randomly choosing x and y out of an array..
« on: Thu, Apr 21, 2011 »
var randomX:Number = Math.round(Math.random() * (spotX.length)) - 1;
This should be Math.round(Math.random() * (spotX.length - 1)), or you could get -1 as a valid answer.

X = randomX;
Y = randomY;
These should be X = spotX[randomX]; and Y = spotY[randomY];, since you never asked the arrays what the actual X/Y value are.

chat / Ludum Dare 20
« on: Wed, Apr 20, 2011 »
Anybody else plan on entering the Ludum Dare game making competition?  The 20th one begins on April 29th, which is coming up pretty soon.

For those of you who don't know about Ludum Dare, it's a 48 hour long solo game making competition, where you create a game from scratch based on a theme which is voted on.  You can read more about it over on their website.

Running at the same time, there is also the Ludum Dare jam where you have 72 hours to complete a game, and you can use teammates.

For those of you who have never done it before, it is a really fun experience.  I would definitely reccomend it all game developers, no matter their skill level!

Pages: 1 2 [3] 4 5 ... 23