Phoenixbowman's Forum Posts

  • I just got the Cranberry pack. I found only one Google plug-in, but in Construct 2, the plugin says nothing about leaderboard stuff.

    The only Google related one is the Analtytics but has no mention of a leaderboard. This tutorial talks about it but doesnt say which Plug-in specifically to use:

    https://www.scirra.com/tutorials/4864/h ... lugin#h2a1

  • I got the Cranberry plug in package, I installed the Cordova Google Anayltics Plugin, but the plugin has nothing it in that involves leaderboards?

    Unless the Leaderboard plug in is a different plugin. I was reading a Cranberry plug-in lets you do Leaderboard stuff with Google, but im going through the different plug-ins in the Cranberry pack folder. the only google one I found Analyltics doesnt mention anything in it about Leaderboards.

    The only Google related one is the Analtytics but has no mention of a leaderboard. This tutorial talks about it but doesnt say which Plug-in specifically to use:

    https://www.scirra.com/tutorials/4864/h ... lugin#h2a1

  • Sorry for asking, I followed the Construct 2 tutorial and it mentioned a Client Secret ID. I went to Google play and there is no Client Secret ID.

  • I found it:

    Extra steps for Cordova

    Google Play Game Services are designed to work in a web browser, but it's possible to also configure it to work in Cordova (e.g. when exporting to mobile via PhoneGap Build or the Intel XDK). To set it up for Cordova you'll also need to:

    Fill in the Client secret property with the value from the Google Play Developer Console.

    Add http://localhost as one of the redirect URIs in the API console.

    Remove any uses of On auto-sign in failed. It never triggers in this mode, so you will need to rely on having manual sign-in instead.

    Client secret property? Redirect URI API console? I do get Auto-sign in fail, but i dont get the client secret property or redirect URI API, sorry. I have no idea where to find the Client secret property or redirect URI API.

    I found the Client ID thing. Where in Construct 2 do I put it? I found the Client ID, but it says view Client Secret ID in API Manager, I clicked but there is no Client Secret ID in the API Manager.

  • Is it best to use the default Construct 2 Google Play object or Cranberry? This is for the Android mobile phone, not Apple. These are the functions:

    How would you do these things?

    * Press a button, submit high score. Same button, if pressed and not signed into Google Play, prompt sign on. Upon successful sign in, automatically submit high score.

    * Press button, display high score.

    Basically, for the phone can the default Google Play object do these functions, or is Cranberry better? How would I test this? would I have to upload to Google play first or can I test using the normal game test function?

  • I tried the code that people mentioned and its not still not working i tried differetn frames, different animation names, etc. still not animating when Player uses keyboard input to move the sprite

  • I got two animations, 1 frame per animation I tried both Custom Movement > 0 set animation, didn't work. I tried when holding down arrow keys and still nothing. I did set animation to " " both for current and at beginning.

    Still nothing Im sorry I dont get it at all. I even gave a second animation to one of the Frames, and moved it left, both with Custom Movement > 0 and pressing keys, nothing. the code says if custom movement > 0, set animation play from current and beginning.

    Then I tried holding down arrow key, and the same code of Set animation to " ", both for current and play from beginning. Nothing still

  • Phoenixbowman

    In the sprite editor, on the right hand side you will see an Animations Window. Right click and select Add Animation. Name it whatever you want. That is where I name my animations, "Right", "Left", and so on.

    Oh, thank you! I was looking at the bottom of the Sprite Editor where it shows the different sprites. I've been using that tab along the bottom for animations lol. For non-custom movement, it works beautifully. I set the Animation speed and set it to loop, and when sprites move on their own they animate perfectly.

    For the player character though I'll use the Animation window to the left. THank you!

  • The words in quotes, that's what I can't find. Animation "down", etc. The sprite has two animations, 0 and 1. No mention in animations or sprite editor as to what the animations are named, it's just 0 and 1.

  • Help please. I see the Start animation and end animation, but no way of connecting custom movement to animation.

  • I will try that thank you. I tried that and found Start Animation and Start Animation " ", which one should I use?

    I see a Start Animation and Start Animation with a " " as well.

  • I got Sprites to animate on their own and they work perfectly. Except for Custom Movement, it's not the Sprite movement that's an issue, it's the animation.

    I have when Custom Movement > 0 Start Animation

    and

    When Custom Movement = 0 Stop Animation.

    Without this code, the spirte loops the animation. How to make it so it only loops when moving, and stops looping when speed = 0?

  • Problem solved! I duplicated the Sprite, but rotated the sprite in the Sprite editor 90 degrees to the left.

    Basically, Bullet Behavior set angle is Yes. In the actual code, Set angle to change direction. Make sure you have Bullet speed set.

    0 degrees moves Left to Right

    -180 degrees moves Right to Left

    90 degrees moves Up to Down

    -90 degrees moves Down to Up

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am using the Bullet behavior because I want the sprites to move automatically. Might the 8 direction behavior work better?

    I tried set bullet speed to 180 and it moves, but it goes across the screen. Angle is set to no in bullet behavior. I have Simulate press down but it's going across the screen. Simulate press down and it moves to the right. Simulate Down means down...but the sprite moves to the right.

    Now i got rid of bullet, set acceleration and max speed to 180, set Simulate Down and the sprite is just staying in one spot.

    Is there a way with the bullet behavior to make the Sprite so it wont flip when it moves up and down?

    PS: I did set Flipped, now it's still sideways...but flipped. The top down space shooter sprites arent flipped when they're dropping down,t he one that comes with construct 2. What's wrong?

  • This might help:

    https://www.scirra.com/manual/173/iap