dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Sub Tank

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Oh cool, I was looking for that link. I feel...

    Oh cool, I was looking for that link.

    I feel like a grid tree system would totally screw with how I plan to lay down platforms for stages. RDC might be more like what I need, although I'll have...
  2. Hey guys, thanks for the responses. Just gotta...

    Hey guys, thanks for the responses. Just gotta ask one follow up question.

    If I go with the brute force method of hitTesting all the platform objects... is there a way to like, not do that? I...
  3. Best way to create a non-tile-based scrolling platformer?

    I currently know of two ways to do this:

    1.) Make a huge movie clip containing the shape of the level boundary, and have your hero hitTestPoint against the whole thing. I'm pretty sure this...
  4. So, my debug console doesn't work at all.

    Using the Flash CS3 debugger here. No variables listed. No objects listed. I'm assuming break points don't work either. Thinking back on it, I don't ever remember it working, so it's not like it...
  5. Replies
    1
    Views
    318

    How do you handle giant user interfaces?

    Should each button get a class and a listener, or should I dump everything into one Object and use e.target.name to figure out what is getting clicked? That way I can just use one listener, but then...
  6. Alright cool, so basically, both ways can be...

    Alright cool, so basically, both ways can be right. I do tend to jam a bunch of update events into the accessor function, so that makes me feel a lot more comfortable about doing it.

    Thanks.
  7. Quick question about getters and setters.

    Not too long ago I discovered that I can refer to certain variables in two different ways. Let's say I have something like this...



    private var _myVar:Number;

    //Rest of the code

    public...
  8. Replies
    1
    Views
    647

    I've used the sortOn method of the Array class to...

    I've used the sortOn method of the Array class to do something like this before. Basically, you dump everything into an array, then sort all your items by their x or y coordinates. After its in the...
  9. Spacing objects out evenly within a fixed space

    I cannot figure out how to do this for the life of me.

    Is there some sort of formula to figure out the exact spacing?
  10. Is it possible to do any interactive stuff with the DataGrid component?

    Like trigger events from selecting items, and have stuff happen based on that?

    I'm pretty sure you could in Flex, but it doesn't look like you can do anything interesting with it in Flash. It...
  11. Sounds like good advice. I'll try that out. ...

    Sounds like good advice. I'll try that out.

    One last quick question. Is is better to put my game objects ( status window, deck, hand, etc. ) directly onto the stage, or add them onto the...
  12. [AS3] Tweening a card from your deck to your hand

    I'm not sure how well I can explain this, because I have no idea what I'm doing.

    Basically, "deck" and "hand" are two separate Movieclips. Hand functions as a container for your cards, and deck...
  13. Is there an easy way to detect if you've moused over something that is covered?

    By, let's say, another display object.

    I swear I was reading the help files, and I saw something like this, but I have no idea what it was called.
  14. Ok, cool! Simple enough. I don't know why I was...

    Ok, cool! Simple enough. I don't know why I was having so much trouble with that.

    Thanks guys.

    Looks like I can push functions in, and swap them around, so it should be perfect for what I'm...
  15. Haha, I think you guys are going way over my...

    Haha, I think you guys are going way over my head.

    What I'm really having trouble with is defining my functions so that I can stick them in an array, and it knows that they're functions. I don't...
  16. So, if I want functions to be called in a very specific order...

    Is there a way to do that without using a bunch of "if" or "switch" statements, like shoving them all in an array? I have a rough idea of how it would work, but I have no idea how it would look in...
  17. Nailed it! Thanks a bunch! I forgot I had...

    Nailed it! Thanks a bunch!

    I forgot I had bubbles = false, but it wouldn't have worked until I did what you just showed me.

    I'll have to look into Event Managers. I can think of a few cases...
  18. Ah, right. I was just reading up on that, and it...

    Ah, right. I was just reading up on that, and it pretty much said the same thing, but I don't really understand how bubbling works very well. From what I understand, it goes to the original object,...
  19. I've had it with custom events. Someone help me figure this stuff out!

    I've been running into a billion problems while creating custom events, so I clearly don't understand some of the basics. All the examples I've found online are unnecessarily complicated, so I've...
  20. Question about addChild and changing parents

    I have this little draggable movieclip that should be removed from its parent object and added to whatever container it's dragged onto. So here's what I tried:


    private function handleMouseUp( e...
  21. Yeah that solves it. It looks like the parent of...

    Yeah that solves it. It looks like the parent of my dropTarget is the MovieClip I'm dropping stuff onto.

    No idea where that other Sprite is coming from, but anyway, thanks for the help.
  22. Can I get dropTarget to return a movieClip instead of a Shape?

    I keep getting "[Object Shape]" when I trace dropTarget, or "instance1" when I trace dropTarget.name. I can't really do anything with that.

    This is totally screwing with me.
  23. Replies
    1
    Views
    293

    Getting custom events to work

    I'm trying to dispatch an event every time a player draws a card, which looks like this...

    PlayerEvent class

    package actionscript {

    import flash.events.Event;
    import customactionscript.*;...
  24. Thread: [AS3] Jumping

    by Sub Tank
    Replies
    2
    Views
    3,055

    [AS3] Jumping

    I really didn't want to come in here and ask how to make a guy jump... but seriously, how do I make a guy jump?

    I'm surprisingly not completely useless, as I can easily create simple hops, which...
  25. [AS3] Question about using custom events in games

    Is it faster to have an object listen for a custom event rather than, let's say, having the same object check for some variable to change every time it enters a frame?

    For example, if certain...
Results 1 to 25 of 37
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center