GeorgeZaharia's Recent Forum Activity

  • hey sorry for the late response, no necessarily i used 0,1,2 because is easier to spot, but you can replace the numbers with groups as you did.

    the structure i made there is basically toggling 3 numbers, if is 0 is GameON if is 1 is GameOver if is 2 game is paused.

    now i used 2 buttons to toggle them, but you need to replace those conditions where i used the buttons to whenever ur player is losing the game or pauses the game. other than that they are all kinda the same structure in most of the Construct games. now u can use as i said above groups, but groups are just a fancy boolean with text over them. a group kinda is the same as a variable that u set it on or off. so u can use what u feel you understand better, just the conditional logic of the code needs to be something similar.

    if players dies set variable 1 if player pressed pause button set variable to 2 otherwise variable should be 0 and game playable.

  • Oh i see :D that is good to know! Thanks for explaining! dop2000 thank you too man! :)

  • try doing it like this instead

    Hi Eleanor The best Game developer in the world sup ^_^, quick learning purpose questions...

    Isn't (platforminfo.WindowInnerWidth/2) x (platforminfo.WindowInnerHeight/2) doing the same thing as the image you shown? why doing that way? Curious if there is a spacing reasoning behind it for different devices or something?

    oh sorry about that i seen /2 instead of %2 ... why %2? is that like a 2% margin ?

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

GeorgeZaharia's avatar

GeorgeZaharia

Member since 30 Jun, 2014

Twitter
GeorgeZaharia has 35 followers

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x9
    Popular Game One of your games has over 1,000 players
  • x21
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies

Blogs

  • Construct For Dummies - Simple Tutorial Collection

    I scour the Construct forums for users tutorial requests, and create small quick and simple tutorials using Construct's defaults features so anyone can use and apply them.

  • My Dev Logs

    Thinking on games 24/7 is fun and waste of time and unproductive if we don't bring those game ideas to life. In this blog im bringing my game ideas to life and log their development process.