User Tag List

Results 1 to 6 of 6

Thread: help with luxor like code:)

  1. #1
    Clicker Multimedia Fusion 2

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

    help with luxor like code:)

    hello

    i found how to shot random color balls and also i made what i called :"color ball show" witch stand down in the screen on the canon who shots the balls, and change color to the relevant color and here is the problem:
    when the player press left mouse, the canon shoots random ball (one color of 3) and the canon show the color of that ball ,but i want's the canon to show the next ball so the player will now what the next color is and this way he will plan he's next move.
    so..how can i show the next color to shoot befor the actual shooting?
    here is link to what i did:
    http://rapidshare.com/files/90528760/puzzle_bubble_t01.mfa.html

  2. #2
    No Products Registered

    Join Date
    Nov 2007
    Location
    Wales
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help with luxor like code:)

    Hi.

    You've pretty much got it nailed already with the way you've approached it, by setting the preview ball the random colour, and when shooting, setting the shot ball to that colour and randomising the the preview ball.

    The only thing you've done wrong is the order in which they are executed.

    Did you know that when you have more than one instruction on a line, you can decide which order they are run?
    This is very important most of the time, so apologies if you do know this, but I'll go through it to show you how you solve your problem with it.

    Double click on one of the ticks on your second line of instructions.
    This will bring up all the instructions on that line, in the order they will run.

    At the moment you have it like so:

    - [Ball to show colour] - Force animation frame to random(3)
    - [Canon] - Shoot [Ball to shoot] toward [UP] at speed 40
    - [Ball to shoot] - Force animation frame to image [Ball to show colour]


    This randomises the colour of the preview ball before the other ball has been shot, and the next 2 commands shoot the ball and then set it to the random colour set in the first command.

    To get it to work correctly, drag and drop them so they are in the following order:

    - [Canon] - Shoot [Ball to shoot] toward [UP] at speed 40
    - [Ball to shoot] - Force animation frame to image [Ball to show colour]
    - [Ball to show colour] - Force animation frame to random(3)


    This now shoots the ball, sets it to the colour that was previewed in the preview ball, and THEN randomises the preview ball ready for the next shot.

    So you were almost there.

    Hope that helps.

    Krush.

  3. #3
    Clicker Multimedia Fusion 2

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

    Re: help with luxor like code:)

    hahaha...damn...works like charm..i kinda new the answers is about the order, but coulden't find the key somehow.

    thanks alot - after i will get back from work, i will give it more attention cause i still wants to understand the logic behind this.

    thansk

  4. #4
    Clicker Multimedia Fusion 2

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

    Re: help with luxor like code:)

    ok..now i have another problem..(thats why i asked for tutorial for this kind of games)

    when i shoot ball..how can i make the shooted ball , to stick into the group of balls and also how can i tell the code to pop every 3 balls from the same color?

    here is what i did till now and any help will be mutch apriciate
    http://rapidshare.com/files/90662262/puzzle_bubble_t01.mfa.html

  5. #5
    Clicker Multimedia Fusion 2

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

    Re: help with luxor like code:)

    anyone can guide me abit?

    or even any other way to do it?

    i am talking about this kind of game:

    http://www.games2download.com/free-puzzle-games/luxor-screen2.htm

    just the concept..how to tell the code to destroy every 3 colors
    like i asked above.

  6. #6
    Clicker Fusion 2.5SWF Export Module
    jpcr's Avatar
    Join Date
    Jul 2006
    Location
    Paris, France
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help with luxor like code:)

    i would probably use an array filled with the object colors or a representaion of it( like 1 green, 2 blue,3 black ....)

    then read the array and if you want to destroy the blue ones for example , assuming blue is 2 you would look in the array
    for element position +1 and +2 to see if the array contains 2 at those positions. then if it is the case , remove those 3 from the array and do the changes on screen.

    but this is just as it comes to my mind without any deep thinking.

    hope this helps.

Similar Threads

  1. RGB into Hex code?
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th October 2009, 09:37 AM
  2. Using DLL or Code
    By Pegasus_Seiya in forum Extension Development
    Replies: 0
    Last Post: 12th June 2009, 04:43 PM
  3. V-Code Generator Source Code
    By LB in forum File Archive
    Replies: 1
    Last Post: 10th March 2008, 08:52 PM

Posting Permissions

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