jeffige's Forum Posts

  • But when do not exist, I want to create it, how do I do it?

    Because the "else" is not supported.

    It will 'exist' after you set a trigger for it to exist.

    Example:

    Player - On destroyed > System - Set lives (lives is the global variable) to 4

    Then add the action to set lives to localstorage:

    Localstorage - set lives_key(1) to lives(2)

    Number 1, the lives_key is just a name for THAT data in localstorage. You can call it anything you want, but most people will use the global variable its saving and some will add the KEY after it, just as a quick reference so they don't, i mean me, get confused.

    So when you start the game again, that localstorage WILL exist now, and it will have the value of 4.

  • I contacted dev console's online chat and asked "if the player is not logged into Google Play Game, will their score still update on my leaderboard?"

    That was 4 hours ago, they said they have to figure it out and get back to me.

    Does anyone here know if it will update? The answer is going to change how/when the player logs in.

    Thanks for any help on this.

  • No. Nothing that complex. It's just to see if the player can play (say 10 mins) without dying, they get a reward.

    After i fix this 1 bug that popped up, gonna try it out.

    Thanks for the replies.

  • Since my game takes up the full screen and i don't have levels, banners are out of the question. Not only that, players HATE them. They distract the attention of the player. And you do not want to piss off a player so they just quit playing and uninstall your game.

    I use interstitials. Each time the player dies 1 is added to the Global Variable Show Ads. As soon as the player dies and that GV is equal to a value i set > Show Interstitial.

    I also have a reward interstitial. Once it's shown, the player is rewarded with a very small quantity of power-ups. When they see that reward ad, the GV (RewardAd) is set to 0 and the group "Reward Ad" is deactivated.

    Each time the player dies, 1 gets added to the GV RewardAd. When that GV is equal to a value i set, the group "Reward Ad" is activated and they again can watch and earn.

  • Title says enough!

    Not really.

    Is the object small and you want to make it larger?

    Is it large, covering the screen, and you want to make it smaller?

  • You can win in your game a few different ways.

    Do a check to see if any boxes are left on the layer.

    Every time a box is found/destroyed add 1 to a Global Variable named Win. For each layout you have: compare that Win Global Variable to whatever score you set for the player to reach to win.

    To win = 20

    System compare variable = 20 > Display Win on layout.

    Add a text box to the menu layout, name it Score or Score_txt, so you can tell the different in names later.

    Add a global variable to event sheet named Score, doesn't matter where you add it, but its preferred to add it where it takes place. As in on the event sheet that the score takes place, such as the gameplay layout.

    On Menu Event Sheet:

    System - Every tick > Score _txt - set text to Score

  • I'd like to reward the player with a single power-up if they can go X minutes without dying.

    I've looked at game time but that won't let me. Timer behavior doesn't seem to work either.

    I also thought about adding dt to a GV. Then if that GV is equal to X minutes (secs) reward the player and reset the GV.

    Would this work?

  • Google Play Game Services should function entirely independently of the rest of the game. It sounds like it could just be a mistake in your events. Unless you share a .capx it's pretty much impossible to comment further.

    Thank you so much for the reply Ashley. I'll go back through all the login/audio events and try to see what's what.

    If i still can't find it, i'll do as you say and share the capx.

    Thanks again.

  • How many slots do you have?

    Can you choose which slot to save in?

    You may have to add a 'delete save'. I don't use saves so i may be pulling this out of thin air. I would look at something like:

    Creating a 'clear storage' button. On touched button (delete save) then choose which slot you want to delete. Again, i've never used 'save game' or anything like that, so i'm not sure of the logic that goes with it.

    In my game i have 2 invisible objects, that when touched in sequence will clear my entire storage. This is only for testing purposes, but still in that general area.

  • Did you make the game or did you just download it?

  • Hi all,

    I get a bulding my app with cordova-plugin-facebook4 failed error with XDK. Any way to fix it?

    Greetens

    You should be more specific. There are thousands of errors that could come from Intel XDK.

    What plugin are you using?

    How are you adding the plugin into XDK?

    A screenshot or the exact error may prove useful.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 99Instances2Go

    I have my seconds 😎

  • Well looking at the image, and i'm no expert, you have play animation. Animation doesn't move. It only plays the animation. You need to add controls to actually move the player.

    On A pressed > simulate platform moving left ---- set mirrored.

    Then you play the animation that goes with the movement.

  • In that case i think you could just use my example. But i'd have to look at it to get the rotate out of there.

    I'll look at it today.

  • Have you looked at 8 direction behaviour?