facebook

Touch

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #346769 Reply

    hardsofft
    Member

    I have 2 Questions For my project

    1. the user has to touch for one time on free space and have to continue to next free space ( total of 6 free spaces ) in clock wise direction…The user shoudn’t touch the free space more than once and if it happens it should popup try again.

    2. how 2 allocate one point for a touch on free space…like below example and if it reaches the required point it should say “Well Done”.

    http://orteil.dashnet.org/experiments/cookie/

    Attachments:
    You must be logged in to view attached files.
    #346780 Reply

    Brandon
    Member

    It looks as though you are trying to make some kind of game. You should look into the JQuery animate API
    http://api.jquery.com/animate/

    It can move objects around the screen.

    To do something like this you will probably need to create an array of spaces that holds the location as well as it is empty or not. Then cycle through them to find the location of the next available then move to that.

    While I am a great fan of Mobione it probably is not your best bet for creating a game with movement. Feel free to email me at info at cincyplanet dot com for a better solution.

    #346781 Reply

    hardsofft
    Member

    No i dont need to move anything. i just let the user to touch one after another box for one time. after reaching the last box it should say well done. thats it….

    #346800 Reply

    Brandon
    Member

    Oh. I have a bingo game I did and what I did was use variables, box1, box2, box3, etc. Then each time check these to see if they were a winner.
    See if this will work.
    Something like: (untested)

    //Code for button 1 run javascript
    box1 = 1;
    checkWin();

    var box1 = 0;
    var box2 = 0;
    var box3 = 0;
    function checkWin()
    {
    myCheck = box1 + box2 + box3;
    if (myCheck == “111” ) { alert(“Yes”); }
    }

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Touch

You must be logged in to post in the forum log in