sho_nakano's Recent Forum Activity

  • so I have a sheet like this:

    Audio On "rhymes" ended -> Audio Fade "nursery BGM" to volume to -100 over 2 seconds, then stop

    Audio On "nursery BGM" ended -> system go to rhyme_level_1

    but the game doesn't go to level 1 even though the nursery BGM ended. Does someone know why?

    Edit: I heard the nursery BGM fades out, so the first trigger did run

  • I'm making a game that was published for web for my client, the game uses iFrame objects to show the client's site and AJAX to send data to a server. Now my client asked if I can export the game for Windows. Of course, I know that windows publishing is possible, but I have concern about iFrame and AJAX objects.

    I want to know can the iFrame and AJAX object work as intended if I export the game to Windows, either using NW.js or Webview?

  • To simplify it, the game you're talking about basically have a function read/write data to server. Construct can already do that, to retrieve a JSON data from a server. However, you need to do some backend side programming to achieve what you want.

  • that sounds like a good idea. I think it'll need a bit more than just adding for each, but I'll know for sure when I test it.

  • this is a very good idea! It's nice to know what the engine has been used for!

  • I hope I word the question correctly, I don't know how to correctly call it.

    I have a MoveTo event on a cards family, and basically I want to move them to player's hands.

    Here is the event sheet.

    It works if I return only one card to player's hand. The problem shows up when I return 2 cards (possibly more than 2 too, but I haven't tested that far). The actions on event 51 only run on one card and not the other. Making one card floating above the player's hand, can't be selected.

    How do I make it, so that all the cards returning to player's hands are destroyed and then the game makes a new player hand?

  • make a variable named "score"

    add a value to it everytime something meaningful happen

    add an event >> system >> compare variable

    set score equal to 100

    and then add action >> event >> system >> go to layout. Go to the layout where you have a "YOU WIN" screen.

  • That works! I don't really understand how that saved the data to an array of objects, but it worked!

    Thanks a lot dop2000!

  • okay, that was close to correct but still not quite. I am sure it's because the data I saved to saveDataArr array were strings (from JSON.ToCompactString). I still send the data to the server in an array of string, what I need is to send the data in an array of objects.

    Is there any way to save an object data to an array? I've been trying but no success. using a JSON's Get expression only gives me 0.

  • I haven't tried it; I actually need the data in an array of JSON objects. I will try your solution later.

  • I'm making a game for my client and in this game, I have to collect user's data and game scores (with their permission of course). That part is already done and what I have to do next is to send it to the backend so that the data can be saved to a server. This is where I encountered the problem, I'm using array object to save the data and array's AsJson expression to send the data.

    the problem is: AsJson sends the data like this

    while what I need to send is only what's inside the data. I've been trying but Construct 3 doesn't allow me to write AsJson.data (it will give me a syntax error). I've checked the documentation but other than using for loops, I don't see any other way to get what's inside the data property.

    Can someone help? Thanks.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That looks like a great solution, let me try it out

sho_nakano's avatar

sho_nakano

Member since 16 Jul, 2021

None one is following sho_nakano yet!

Trophy Case

  • 3-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies