User Tag List

Results 1 to 9 of 9

Thread: tetris like movement

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    tetris like movement

    hello

    my question is about how to move object like falling box from the top of the screen and to controll the speed of the falling box(or any other active).how to do do manually movement.
    how to do this with valeus? like x_pos=something and then x_pos=something+10 or what ever.

    i saw tutorial that showed exacly this situation somewhere, but..i can't find it

    anyway, i'll apriciate as usual, any help.
    thanks ahead guys.

  2. #2
    No Products Registered

    Join Date
    Aug 2007
    Location
    Taiwan
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    For free falling movement, we need three parameters: Vx, Vy and G.
    Vx and Vy are horizontal and vertical velocity respectively, and G is the gravity constant.

    Here're roughly the events make it work

    +Always
    BOX: Set X position to X("BOX") + Vx of BOX
    BOX: Set Y position to Y("BOX") + Vy of BOX
    BOX: Add G of BOX to Vy of BOX

    +Repeat while Player Move left
    BOX: Set Vx to -10

    +Repeat while Player Move right
    BOX: Set Vx to 10

    +(NEG)Repeat while Player Move right
    +(NEG)Repeat while Player Move left
    BOX: Set Vx to 0



    example: http://rv74.homeip.net/tmp/FreeFallingExample.mfa

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    thanks alot mate
    also the link for the example works, but i can't open the file..unknown format.

    can you make it jpeg or bitmap?

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    UK
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    Its not an image... its an MMF program.

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    strange..my pc rec it as photoshop image..let me try.

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    ok thanks.

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    another thing on the way (as usuall)

    if i wants an object to upear randomaly(random positions) in the playing erea?

    and another thing: how to create space invaders like movement when the invaders moving from right to left?
    i can do it easily with path movement, but i wanna do it manualy.
    i did something like this: if object is bigger then "number" then object x cordinate=x+2 and the object moving 2 units across the screen, but when it reach the end of the screen i can't make it back like x-2 and i know why..the loop command it to move x+2 every loop, but i dunno how to reset it ,so the object will reverse the movement.

  8. #8
    No Products Registered

    Join Date
    Aug 2007
    Location
    Taiwan
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    for random position

    BOX: Set X position to Random(Frame Width)
    BOX: Set Y position to Random(Frame Height)
    // use Random(...) to make a random number in desired range


    for inversing movement, you can simply set an Alterable value as invader's horizontal velocity, then change the sign of that value when you wanna make invader's movement reversed

    INVADER: Set X position to X("INVADER") + Vx("INVADER")
    // make offset

    INVADER: Set Vx to -Vx("INVADER")
    // reverse movement

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tetris like movement

    many thanks RV74, i'll try to deal with it.

Similar Threads

  1. [HLP] Jeu de plateau / Tetris / Bomber man
    By et3 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th October 2011, 08:08 PM
  2. Im Need Tetris Engine with 2 Players
    By Radoslaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 17th August 2011, 10:23 AM
  3. Tetris
    By 150542 in forum File Archive
    Replies: 11
    Last Post: 25th March 2011, 09:57 PM
  4. Tetris remake WIP - Need help
    By DPJ93 in forum Multimedia Fusion 2 - Technical Support
    Replies: 27
    Last Post: 12th February 2009, 04:27 PM
  5. Tetris help
    By Gabriel in forum File Archive
    Replies: 2
    Last Post: 31st December 2006, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •