Wak-a-Rat kinda game in Visionaire (HELP!)

  • #1, by blink3dSaturday, 16. May 2015, 10:18 9 years ago
    Hello people,

    I want to make Wak-a-rat game in Visionaire studio,
    (https://www.youtube.com/watch?v=7UHHsBszUhI)

    i don't exactly know where to start, could anyone help me with the steps, or lua script. (P.S. I don't know how to code)
    I would be very grateful.

    Thank you.

    Newbie

    22 Posts


  • #2, by SimonSSaturday, 16. May 2015, 10:45 9 years ago
    Hi,

    No lua scripts needed.
    Every hole is an object. You can do some random motions with Pause from value and set random value. Then you just find a free spot with conditions and play the animation for that spot and after the animation set condition back to false. And if someone clicks on the hole with the condition == true you increment the hit count or else increment the miss count.

    Thread Captain

    1580 Posts

  • #3, by blink3dSaturday, 16. May 2015, 11:18 9 years ago
    Thank you SimonS. if you could have been more elaborate. But again thanks a ton, i would give it a shot.
    Will let you know how it turns out.

    Newbie

    22 Posts

  • #4, by SimonSSaturday, 16. May 2015, 11:28 9 years ago
    I usually start with pointing in the right direction, that way the success is bigger wink If you have more questions, just let me know.

    Thread Captain

    1580 Posts

  • #5, by blink3dSaturday, 16. May 2015, 12:36 9 years ago
    Thank you, Sensei wink razz

    Newbie

    22 Posts

  • #6, by afrlmeSaturday, 16. May 2015, 13:18 9 years ago
    Thank you, Sensei wink razz


    hehe smile

    Did you figure it out? As Simon said, it can be done fairly easily without needed to resort to Lua script. Here's a few hints or so....

    1. There's already a random time function in animation properties tab.

    2. You can directly apply action parts & if queries to individual animation frames.

    3. If queries, conditions & values are your friends - (well in some cases).

    4. If you want to make the game a bit more dynamic then you might consider using different global pause values for each of the animations.

    Best of luck! wink

    Imperator

    7278 Posts

  • #7, by blink3dSaturday, 16. May 2015, 14:30 9 years ago
    I am preparing assets, will post the project when done. Thanks for support guys, really appreciate it.

    Newbie

    22 Posts

  • #8, by blink3dSaturday, 16. May 2015, 18:21 9 years ago
    Good Evening, (its 21:43 hrs over here)

    Ive managed to make it work in a linear level.

    The objective of this puzzle to hunt one, and only one "Dodo" (ancient bird), it hides behind the bushes, shows it self for a while and then hides again. It doesnt spawn in multiple numbers like the above video.if you click on it in time it gets hurt, and its health keeps draining if you succeed (i havn't added it yet, will do when its properly programmed.)

    Now here's the problem, if you see my project, ive wrote only one set of if conditions, then realized its gonna get linear, (as in there will be one specific pattern of coming out of bushes).

    This is where i need your help, before i continue my mundane method

    how can i make the spawning behind the bushes random, (with either code/ if statements)
    its only one bird, showing itself from behind the bushes one after the other.

    Thank you so much.

    Newbie

    22 Posts

  • #9, by afrlmeSaturday, 16. May 2015, 19:59 9 years ago
    1. create a value.

    2a. create a called by other action block & inside...

    2b. each time you want to make dodo appear behind a random bush use a set random value action part to set a random number between 1 & max number of bushes dodo can appear behind.

    3. now create your if queries to determine which value was set & where dodo should appear from.

    Imperator

    7278 Posts

  • #10, by blink3dSaturday, 16. May 2015, 20:58 9 years ago
    Thank you, AFRLme, will try that out.

    Newbie

    22 Posts

  • #11, by blink3dSunday, 17. May 2015, 02:21 9 years ago
    Good Morning Everyone,

    I somehow made it work, will add more visual feedback later on.
    All thanks to SimonS, specially to AFRLme for not getting mad at my stupid questions. I am attaching the project files along with this msg, if anyone wants to see how i was able to do it. Thanks again. Awsome support.

    Newbie

    22 Posts