GeorgeZaharia's Forum Posts

  • Hi there...... mate (xD)

    What do you mean by <varies> in instance variable? What are your trying to achieve?

    Like you want to define a variable that is random?

  • Hi, the bellow example might help, im not sure if it's saving on touch, but it will show you the structure that local saving needs to follow. To modify it for touched object you just replace the trigger that is saving in the example file and save after you made variable updates.

    So your conditional structure should look something like:

    On touched sprite :

    Action 1 add to score 5

    Action 2 localstorage set item "score" value = score

    Where the first "score" is the key name as text and the value is the actual global variable.

    localstorage+level C3 r139 i think, im not sure about the version used, should work with latest C3 though R139 or above.

    However if you are having the ability to tap multiple times to change the score variable, id suggest saving the score, every 1 or 2 seconds that way you avoid spams (think cookie clicker type of game, or tap to cash).

    You can also save every 10 seconds or when user goes back to main menu screen or has intent to close application.

    On the last suggestion the user might lose some data let's say battery dies out or he closes it by mistake, so the saving local has to be done for game progress, this method isn't meant for In App Purchases, for IAP's you need to update a online server store somewhere to make sure transactions are safe and out of the reach of malfunctions.

    The tutorial section on forum should have something about this.

    Hope it helps. Have fun!

  • That is odd, you sure you downloading an official Construct 2 setup? Which version are you trying to install?

    Edited: lots of rubbish i said.... bad me bad me...

    That is odd, indeed there is no folder selection, but probably cause it already detects you having a Construct version installed so it automatically picks the folder structure.

    A workaround would be to just copy the entire folder "Construct 2" from C:/program files/ and put it on the usb.

    Or where your program files is located.

    Not sure if that will have any downsides cause the Construct program on pc creates some registry key entries... but you can carry the executable with you. and install it on the new computer is only 70 mb.

  • Yes, the collision box is the same area which will interact with your mouse.

    Ok, wasn't sure how you create objects, the way the image showcased was looking i was thinking you drawing the objects with canvas plugin, at which point the detection would have been a bit awkward.

    Awesome then. Have fun! :D

  • Interesting. Link to the API plugin for C2?

  • hi,

    Construct was designed to be the gateway to programming, not backwards, but if you learn any programming language you will understand the conditional thinking Construct is promoting, so it will help.

    I don't know about python and usage with construct, but i think javascript will be more compatible with Construct as Construct is javascript based on what i seen so far, on the SDK for plugins and behaviors.

    But then any programming language can be converted to work with Construct, of course you will have to re-write and translate the code from python to javascript or Construct sdk language.

    Hope it helps.

  • hi,

    condition 1 on clicked button

    condition 2 video is not visible/on screen or some secondary condition that tells the button to not do the action while video is playing.

    or you can move the button out of the screen with a toggle

    condition 1 on clicked button

    play video

    set button x to button.x=512 ?-200:512

    assuming the 512 is the original position of the button on screen if it's 120 or whatever the X position of button is just replace the 512 with that value.

    -200 is outside value i just picked you can make it anything.

    to make it come back lets say you stop the video or have a X button on video, then u do the same action on X pressed set button x to button.x=512 ?-200:512

  • can i ask how your objects are created?

    are they created using the canvas plugin? or are you using sprites? tilemaps?

  • im not sure if you can lock to 60fps, but you can adjust the way your events or objects move by using (60*dt) where you can.

    like for example an object moving would be something like

    set character.x to character.x + 5 *(60*dt).

    Edited: there is also this tutorial limit your framerate build to 60 fps

    not sure if applies to all exports now. but i guess you can add that command line --limit-fps=60 in the android command build... give it a try and see what happens :D

    hope it helps.

  • Hi there, the logic of a turn based gameplay is something roughly like this.

    Let's say you are using a boolean or a condition toggle to define which player has turn to play in that case you do a conditional event like bellow:

    • if player turn true
    • disable enemy turn
    • do player stuff.
    • If player turn ended
    • Set enemy turn true

    ==================

    • if enemy turn true
    • disable player turn
    • do enemy stuff
    • If enemy turn ended
    • Set player turn true

    that is the basic logic, how you move to grid and other stuff, is up to you, you have to think conditional when using Construct and any programming language that is, we set events and condition to the game in formats of "if something happens do this".

    Hope it helps.

  • the interface doesn't have a license transfer i think, you can give access tokens but only if you have a license for teaching purposes where you can generate seats and stuff.

    if you want to transfer your license contacting scirra support is the way to go, just be patient it's 11:44 PM in England, so till tomorrow at 8-10 am nothing will happen.

    For pausing same thing, you have to contact scirra support.

  • I think you are trying to export a C3 game that has no C2 runtime using, im not sure about this, but might be that the arcade section is still not up to date to accept C3 games that are using the C3_runtime, and is accepting only C2 games or games that are using the C2_runtime. To fix this you need to go to advanced in C3 project settings and change the runtime from C3runtime to C2runtime.

    Make sure you don't use minify script i think it might cause problems with the arcade section (as samsuffi said), didn't used that section in a while it might of been fixed by now.

  • Hi there, here it is:) you just need to follow a similar structure/pattern for your game (if you do this you need to remove the game speed scale for pausing or stopping the game). You can still use the game speed scale, but i don't recommend it be used in the same time as saving the game, setting scores etc. The game scale is good in some cases, but the game scale also slows down the entire engine, so some of the event reading might be skipped or not happen or happens with a delay, which might cause glitches, or misplaced objects.

    GameToggle

  • seems the forum was reversed to the past 24 hrs and some data was lost,

    here is what i posted car lane AI C3-140

    hope is what you are looking for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • im not sure if this is what you want, but here it is

    car lanes AI r-140