rhg1968's Recent Forum Activity

  • There are a few things going on here that you may need to look at:

    1. You set the animation to play from the beginning every tick.
    2. You are checking in numerous conditions if the state is equal to something and then setting equal to that in the actions
    3. You also check if the state is not equal to a bunch of things and then check if equal to something. All you need is check if it equals what you want.

    Give me a little more time to look it over in more detail

  • To be honest I would have to see the whole event sheet to see if variables are being reset or not.

    I use the built timer extensively in my game, as matter of fact, I have 3 of them running on one layout without issues in both the c2 and c3 runtimes.

    I certainly can help more if you could create a simple project that reproduces the issue, if you don't want to share this one, and provide a link to it via drop box, one drive, etc....

    I would be more than willing to look into it more

  • I believe your issue is the trigger once condition. The less than zero check will only happen one time because of the trigger once. It'll set it to zero then never do it again. Both trigger once and <0 have to be true for the action to be carried out. Trigger once should only be used if you really only want it to be fired once.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley

    Bump

  • it is a single-global plugin

  • Ashley

    I have a plugin that allows you to loop over a json array structure directly and it works well.

    What I am curious about is that I can't set a break point in the loop. Is there some way I need to change the code to give it the ability to have break points set with the c3 runtime ?

    I appreciate any guidance.

    Thank you.

  • I have a very complex game and so far the performance on mobile has been very good. I would need to see your project to be able to offer any suggestions.

  • Ashley

    I didn't, but I will. I just wanted to make sure since it had c2 in the name.

    Thank you

  • Ashley

    Well I did already and that's why I'm asking the question. I saw that you could call c2_callFunction but I didn't know if this is the correct way in the c3 runtime.

    I also feel that this info should be in the sdk manual

  • Ashley

    Is there a c3 public api that I can call a function, using the existing built in function, and pass parameters to it ?

  • I created the JsonManager plugin and just tried your json and it worked fine. First make sure you include it in the project like:

    then in your events you have to initiate the load like

    Then when you run this I get on the screen 660 as expected. You should also be able to load a json as a string but always wait till the json loaded event has triggered

  • I don't have a way currently to get both directions, but my json manager plugin will take a js sub-object and convert it to a c2 array/dictionary.

    https://www.construct.net/make-games/addons/138/json-manager

    Don't know if this will help you or not.

rhg1968's avatar

rhg1968

Early Adopter

Member since 6 Jun, 2014

Twitter
rhg1968 has 9 followers

Trophy Case

  • 12-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies

Blogs