zaylong's Recent Forum Activity

  • I'e thought of those things before, however I wanted to have a more self contained solution.

    I want to be able to call a function specifying the data field I want to retrieve, and be able to return that value, enabling me to push that value to any variable I wish.

    Right now I'm limited in the sense that I must always push that Ajax.LastData into a fixed variable or dictionary.

    So I'm i'm making an online game where a player's score is kept, everytime I call "get_score()" I would have to make sure that at the end of the process the data gotten via ajax gets put into a variable, say "payload".

    So that means if I want to set the variable "player_score" I'd have to first call "get_score()" then I have to immediately call "set player_score to payload".

    This just makes it very difficult to use in expressions.

  • Is that the only way it can be done then?

  • I've been able to use the AJAX object quite successfully so far, but this specific scenario seems impossible.

    I have a URL endpoint that can retrieve a number from my server.

    Is there a way for me to create a function with an ajax call inside of it for that number, then set the return value of the function to Ajax.LastData?

    The problem is that a function and the ajax On completed conditions are both triggers, so I can't exactly nest the on completed inside of the function.

    This prevents me from calling a function as an expression and putting the return value into a variable.

    Any and all help is most appreciated, thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Howdy! I've just recently started using Construct 2. I've known that it was good for developing HTML5 apps, but I see now it also has iOS, Android and desktop functionality. Pretty impressive to say the least!

    I come from an ActionScript 3.0 and C# background; In terms of ease of use game making programs I've used Clickteams Multimedia Fusion Developer program for ages.

    I've decided to take a look at C2 because I've been looking for a better/cheaper alternative than paying 200+ dollars for the iOS, Android, and HTML5 extensions for Fusion Developer. Compared to the 130 dollar price tag of C2 it seems like a much better deal.

    If anybody could direct me to any resources with Plug Ins for C2 I'd appreciate it.

    Also does anybody have any comparisions between C2 and MMF2? Which do you like best and why? What advantages does Construct 2 have?

    I'd appreciate the help, Thanks!

zaylong's avatar

zaylong

Member since 4 Aug, 2014

None one is following zaylong yet!

Connect with zaylong

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies