A Flash Developer Resource Site

Search:

Type: Posts; User: xtrava

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    436

    if (keyPress "" && playerYPosition > 1){...

    if (keyPress "<Up>" && playerYPosition > 1){
    playerYPosition -= 1;
    } else {

    if (keyPress "<Down>" && playerYPosition < 10){
    playerYPosition += 1;
    } else {

    if (keyPress "<Left>" &&...
  2. Replies
    2
    Views
    436

    Multiple case if statement

    Hey, I have a piece of code seen here:


    if (keyPress "<Up>") && (playerYPosition > 1){
    playerYPosition -= 1;
    } else {

    It doesnt like this, gives me bracket errors. So I tried:
  3. Replies
    4
    Views
    815

    Ooooh...I see. I wondered why when I would trace...

    Ooooh...I see. I wondered why when I would trace the current timer it would only ever tell me one figure and then stop.

    Unfortunately, I've been working all day on getting it to work another way....
  4. Replies
    4
    Views
    815

    I made a seperate clip on frame 1 and put this...

    I made a seperate clip on frame 1 and put this code inside:



    onClipEvent (load) {
    trace("hello");
    var startTime = getTimer();
    if (getTimer()-startTime>1000) {
    trace("bye");...
  5. Replies
    4
    Views
    815

    Move to a Frame after a set time?

    Hi.

    I'm having trouble moving to a different frame in my scene after a certain period of time. I want this to occur after several things have happened which are also time based.

    I tried this...
  6. Thread: Loops..

    by xtrava
    Replies
    3
    Views
    778

    Thank-you good Sir. Thats almost what I tried...

    Thank-you good Sir.

    Thats almost what I tried the first time, but I didnt write it quite like that, hence the problem :)
  7. Thread: Loops..

    by xtrava
    Replies
    3
    Views
    778

    Loops..

    Hi,

    I'm trying to unload all movie clips from continuing to spawn and move if I change to a certain frame. I've stopped them from spawning with a simple boolean statement but I'm having trouble...
  8. Replies
    5
    Views
    626

    Nevermind, my scene questions are answered...I'll...

    Nevermind, my scene questions are answered...I'll search/ask elsewhere about unloading clips.
  9. Replies
    5
    Views
    626

    Actually they dont seem to stop at all, they...

    Actually they dont seem to stop at all, they always appear...how can I limit those movie clips to only being loaded/seen in frame 1 of the game scene??
  10. Replies
    5
    Views
    626

    Okay I'm going to forget about the "Game Over"...

    Okay I'm going to forget about the "Game Over" scene. It works fine to go from the menu scene to the game scene and then on the game scene I'll just use a new frame for the game over and have a...
  11. Replies
    5
    Views
    626

    Another Scene change question =/ [MX04]

    Hi,

    I know this sort of question is asked often and I've been searching here about changing scenes, but unfortunately nothing has solved my problem yet.

    My game has three scenes, the menu...
  12. Replies
    1
    Views
    452

    So there isnt one? I just want to know before...

    So there isnt one?

    I just want to know before I waste time copying and pasting into word. Surely someone knows? :)
  13. Replies
    1
    Views
    452

    [MX04] Word count?

    Hey, I cant seem to find how to do a word count of my actionscript in Flash. Is it possible? :thumbsup:
  14. Replies
    3
    Views
    1,181

    Thanks imprisoned but it wasnt working very well...

    Thanks imprisoned but it wasnt working very well so I decided to make a few clouds with motion tweens...I see Viza has just posted that method.

    It seems to run okay, if my games performance is...
  15. Replies
    3
    Views
    1,181

    Scrolling movieclip/background

    Right well I've done a lot of searching and only found things like scrolling around an image, putting scroll bars in for websites, and things of that nature. I also found the spaceship tut where the...
  16. Replies
    14
    Views
    1,326

    Yup, but not just flash, basically every...

    Yup, but not just flash, basically every programming language ever. Boolean is the basic way PC's work. 1's and 0's...The hard drive gets north and south poles magnetically set on it, north is a 1,...
  17. Replies
    9
    Views
    791

    I seem to have it working now. Thanks guys :)

    I seem to have it working now. Thanks guys :)
  18. Replies
    9
    Views
    791

    I have MX :( I'll try to get the code to...

    I have MX :( I'll try to get the code to work...Thanks

    EDIT: I've simplified it and I think I've got it working right


    closeness = _root.left._x-this._x;
    if (Key.isDown(Key.LEFT) and...
  19. Replies
    9
    Views
    791

    I see...The trace gives me 174.85, or if I...

    I see...The trace gives me 174.85, or if I increase the range it gives say 164.85...However this doesnt even seem to be happening at the right place.

    The arrows move at a speed of 5, tried it at...
  20. Replies
    9
    Views
    791

    It's a rhythm action game. Ever seen DDR or...

    It's a rhythm action game. Ever seen DDR or Stepmania? Arrows fly to the holders and the user has to press the corresponding arrow on time..
  21. Replies
    9
    Views
    791

    Keypress accuracy reward

    Hey, heres what I'm trying to do.

    I have an mc which flies across the screen towards a holder, when the player presses the left key, if the mc is over the holder he gets a score added. I'm trying...
  22. Replies
    2
    Views
    589

    :D Thanks. I can get on with making some silly...

    :D

    Thanks. I can get on with making some silly animations now :P Basically I have a little fella who stands still in the middle of the stage, and when you press say, the right key, his right arm...
  23. Replies
    2
    Views
    589

    Animating Character

    I have it so an MC appears and does the animation it has inside it (at the moment for test purposes it just moves down). I placed it on a seperate frame on a layer, and I'm using gotoAndPlay to make...
  24. Replies
    14
    Views
    1,439

    Ah I see thanks...That works. Yeah I realise...

    Ah I see thanks...That works.

    Yeah I realise its probably a sloppy way to do it, obviously as I'm very new to actionscript I'll be doing things like using too many if statements and not loops or...
  25. Replies
    14
    Views
    1,439

    University would get me prosecuted if I had...

    University would get me prosecuted if I had someone else work on a dissertation project, and they know the sites I use :( lol

    I managed to get an arrow attaching on a timer, which is just in the...
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center