RIDING ON CARS! *Not actually a gameplay element
Alright, I’ve finally got the LightGrid working out – so lights, when they are directed at certain parts of the grid, they’ll react to it – based on the level of power the light has.
I was asleep until 3. So I’m glad I finally got it working. Also…see the title.
So yeah. The grid is going to be layed out as background panels, probably a lot smaller than they are now so that it looks smoother, but then they need to be associated with light panels. Which is where I’ve had a problem for a while as to how to do that.
So what I end up doing is used two symbols inside the Lamp symbol (So it’s used by the class), and pull those bounding boxes out to use them. Or more specifically, they’re stored as MovieClips. Because MovieClips simplify everything in Flash.
So I’m using the MovieClip Symbol object of a specific part [Separate from the Lamp itself] of that Lamp Symbol object that’s being used, and calling that object’s “hitTestObject” method to determine if a LightGrid object item in sight:
So yeah – if it is, then we link the Lamp to that LightGrid object.
Would’ve probably been looking around in Actionscript 2.0 code, but I was lucky enough to know that a friend of mine already did the research on the function method name: namely this post here.
http://hownottoblog.tumblr.com/post/9163148238/ludum-dare-21-day-2
Thinking about how the character has gotten me to remember this particular video @7 minutes in:
(Warning: Has Profanity in it, like a lot of it. Use headphones if you’re watching this at work, and/or children you don’t want spouting specific curses.)
http://www.youtube.com/watch?v=8FpigqfcvlM
(Also, it’s 20 minutes long, so you may not want to watch it in full now. But watch it in full at some point. And if you already did, then you wasted 20 minutes away from Ludum Dare. I wish I could say I was sorry, but this is a competition. <_< :p )
So the important part out of that video is that Megaman X is on the title screen as the cursor. Something along those lines.
Also, RIDING ON CARS!</random reference from video>*
*Just watch the video when you have time.
~~~
Okay, but seriously, next is sorting the lights, and storing the lights in one array, and the grid parts in another.
Then, ground and the player character.
Then Switches the player can use to relate to Lamps and LightGrids (Really, the whole reason we’re doing them more or less.).
Then…layout of the level, I guess. Probably just going to be one hardcoded level (Maybe per difficulty level), and like…yeah. Entrance and Exit. Figuring this stuff out then.
Then enemies.
Then combat.
Then EXP.
Then Bonus Board.
Then Sounds.
Then animation touchups.
Then Title Screen?
I’m probably missing something, but that sounds like a reasonable setup, I think.