gfigueroa's Recent Forum Activity

  • there are some issues in the code.

    You are not using the webstorage correctly. You also placed a Set Highscore to Highscore, therefore, and you defined highscore=0 ... so you will always have highscore as 0.

    Another thing is that the order of execution does matter. When you die, you reset the global immediately... instead, you should have the webstorage (as step 3 below) and then reset the variables and layout. If not, you are just resetting and saving the highscore as 0.

    1. Try this, use " " for all highscore value

    2. On the start layout -> Webstorage -> Local key "highscore" exists | System -> Set highscore to WebStoreage.localValue("highscore")

    3. On comparing the distance, webstorage-> set local key "highscore" to totaldistance

    That worked on the mini test I did.

  • LittleStain thank you!!!! Will look into it!!

  • Hi,

    I want to use physics to have an object falling into another one and when I move the one at the bottom (receiver), then it will move the ones on top. I try playing with the friction, assuming that if the friction at the bottom object is higher, the objects on top would stick to it (unless I move it very fast), but it didn't work.

    Can anyone point me in the right direction? Is not physics what I need? (I was thinking about PIN behavior, but I do want the object to fall if you move too fast).

    Here's the capx: https://dl.dropboxusercontent.com/u/19421237/TestFriction.capx

    Thanks!!!!!

  • You do not need to place a full capx with your whole game and art, you can just reproduce the lines of code in an example (especially if you used a template), just put placeholders like boxes. If not, then, can you at least place an image of the section where you are evaluating the high score? I followed the tutorial and it works fine for a runner. It is really hard to review/help with something without seeing the code (too many assumptions have to be made...).

  • bremen haven't looked into it yet, I was out of town at GDC

    juannn91 the tutorial is for iOS with CoconJS... do you know how to adapt it for WP or Android?

  • stctr just published a tutorial for Facebook... I will look into it and let you know if it worked <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://www.scirra.com/tutorials/908/fa ... button-php

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yann Thank you so much! this gave me a starting base... I will post the result if successful !!!!

  • Games What you are trying to determine is a Bayes decision tree, assuming that your probabilities are independent, Joannak is right, you should multiple them. You can't have a probability over 100% at anytime, because that would happen all the time. (So, no probabilities like 125%)

    Instead of checking for each probability, build a decision tree that gives you the path for each case. With that, you will be able to determine the probability for each scenario.

    Note that the sum of all the probabilities should be equal to 1 (or 100%).

    A quick google search for Bayes Decision tree should help you to understand the probabilities behind of what you are doing, look for an example with numbers... Once you get the idea of it, you should be able to implement it with a function that generates a result if your probability is between certain values.

    Edit: I didn't notice that the solution was already there. Yes a function will help you avoid that. Anyways, a decision tree always help in this scenario (I like graphics).

  • Yann How can I avoid the sprite getting collapse when the Touch.X, Touch.Y is the same spot as Collision.X, Collision.Y on the Diablo Like Movement? For example, if the character arrives to the place being touch, then the sprite alternates between up/down or left/right. I guess it does not know which one is the right direction. Is there a way to have it with an offset? I tried modifying the Set Position under Is Moving, but it didn't work.

    Thanks!

  • Aphixe the solution above is to teleport your character to wherever you tap/touch. If you want the character to move continuously, you will need something like:

    Touch | Is in touch

    System | distance(Player.X, Player.Y, Touch.X, Touch.Y) > 300*dt

    Then:

    Player | Move 300*dt pixels at angle angle(Player.X, Player.Y, Touch.X, Touch.Y)

  • Dousi96 juannn91 I haven't figure out how to make it work yet. If I do, I will post it here.

  • juannn91 Thanks! but looks like it is set for an App / Game for Facebook, not for a Game that was developed for Android/IPhone or Windows Phone and then you want to post your results on your fb page. Or am I reading this wrong?

gfigueroa's avatar

gfigueroa

Member since 3 Oct, 2013

None one is following gfigueroa yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies