locohost's Recent Forum Activity

  • This is the link for the "manual"...

    https://www.construct.net/make-games/manuals/addon-sdk

    Where at this link can I see the instruction manual? All I see are links to download an example (sorta) plugin. I thought perhaps there would be a doc or readme or at least lot of comments serving as the "manual", there are not.

    What am I missing?

  • really superb voip for c2 game

    What is really superb?

    When was the C3 site last updated? A year ago? I sincerely hope I'm proven wrong, but I'm feeling like C3 is vaporware Or at best, if it's real, it will be many years in development.

  • Ok it looks like I have the right CORS headers now.

    It's Node/Express, this works...

    		
        console.log('Setting headers on server res now...');
        res.header("Access-Control-Allow-Origin", "*");
        res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
        next();
    
    [/code:3pnjantd]
  • Thank you I think you're right about that. However there is no combination of res.header settings that will allow C2 app running in preview ( http://localhost:50000 ) to connect. I can't make it work :-/

  • I doing a simple Ajax call to pull some Json data from a running web server. Here is the code...

    Notice I'm storing the url in the DBG variable. In the debug console, I can grab the url in DBG, paste it into Chrome and the exact Json data expected is displayed.

    However...

    In the code the C2 Ajax error callback is always called, never the success. RETURN_VAL_4 has the "Login error: " prefix and then blank. Nothing in Ajax.LastData. This makes no sense when it works perfectly fine in Chrome.

    What is happening?

    Thank you for helping me past this. I'm stuck :-/

  • Suppose you want to call a function something like str("foo"&sprite.myvariable) ?

    Best tip in a long time. Put all my function names in a few generic object instance variables. One generic object per "class", one Event sheet with class name, functions and vars have class name_ prefix. Keeps everything organized and easy to find. Now I can change the function names any time and as many times as I wish and simply edit the object instance var. Everyone needs to call their Functions like this. So damn good!

  • > I've already solved the problem. I can see my own code. I can enable and disable the issue at will so I clearly see the problem.

    >

    Well, your last post wasn't indicating this at all.

    Ok that's true

    If I may, two polite suggestions for a forums "moderator": Telling a person flat out "you are wrong", using those words, regardless of whether the person really is wrong or not, is "impolite" English at best. It will probably sound rude in most cases. Sarcasm is also very tricky

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • With respects, you are wrong.

    With respect, really don't need "you are wrong" replies. I've already solved the problem. I can see my own code. I can enable and disable the issue at will so I clearly see the problem. But thanks for helping KYATRIC.

  • Isn't this exactly what I was talking about?

    Mmm, with respect, no I don't think so

    The trick (for this bit of code anyway) has nothing to do with the AnimationFrame check and everything to do with the subsequent FamCard.PlayerIdx checks in the nested OR Event. I can do a single FamCard.PlayerIdx = Player_MyIndex in the nested Event and the code works fine, but as soon as you add the second OR'd conditional using the Family instance var, sprite instances outside the original pick then become picked somehow. I think it's a bug.

  • Ok I resolved the issue. This code works and seems to indicate a C2 bug...

    Compare to code in OP to see where the bug is. The 2nd level pick by FamCard in the OR condition is picking instances outside of the 1st level pick. This should not happen.

  • A way to make plugs using events

    I'm not sure what this is. Can you explain briefly?

locohost's avatar

locohost

Member since 19 Sep, 2014

None one is following locohost yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

14/44
How to earn trophies