Hasan999's Forum Posts

  • Hi,

    I am in process of duplicating my game for Amazon Appstore (currently for Google Play Store).

    In the review email from Amazon, I am required to change from the existing Google Play Services (Leaderboards) to Amazon Gamecircle.

    How do I implement this in Construct 2. I am not able to find any Plugin or Tutorial anywhere.

    Please help. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi..

    For an example, imagine a Air-hockey type of game (horizontally), split in two halves with a vertical line in the center.

    Now to control the paddles, I cannot find a way with the existing Touch events like "Nth touch", because in Two-player game, any player can lift and press their touch at anytime, which will change the N'th number.

    Can someone please help me with an algorithm to enable controlling two objects' position (X and Y), based on the nearest Touch?

    Note: I already tried with: If Touch.X > Layout.Width/2, and its Else. But the action (let's say Paddle.X set as Touch.X) does not refer to the correct player's touch.

    Please help,

    Thanks!

  • Thanks! RayKi

  • Hi..

    I wish to implement a Day mode and a Night mode into my existing game, which would automatically be set according to when the user is playing the game (either daytime or night-time)...

    Is that possible?

    Thanks

  • Yeah, it depends on the action really.

    For me, I had Set text (for many different text objects) in Every tick and constantly-true conditions, which was taking up all the memory. I removed most of them to change when they need to change (only once) and I could see a huge improvement in FPS.

    This is also mentioned here: https://www.scirra.com/manual/134/performance-tips along with many other useful and specific performance tips.

  • I'm sure many others would want to have this feature in their game.

    I am hoping to get some answers here... Perhaps if anyone knows about a Plugin that can do this.

  • That's correct.

    Using Trigger once would reduce unnecessary processing repeatedly and improve FPS slightly, especially when the action is a heavy one (like a Physics velocity to zero, Set position to a fixed point of a large sized sprite, or Effects parameter, etc.)

    Whereas, setting Global variables every tick would not really have any noticeable difference.

    Though, it is always best to use Trigger Once, or using "On" conditions where ever possible! and have least possible actions at "Every tick" (and all other constantly true conditions).

  • There is a much easier technique than all the maths above

    Just use Overlapping with Offset. Suppose if sprite A is to be hit by sprite B from top. Then:

    --------------------------------------------------------------------------

    [A] On Collision with

    [A] is overlapping with with offset (X: 0, Y: -2)

    ---------------------------------------------------------------------------

    This way, once A gets collided with B, it will check 2 pixels above it if B is there or not.

  • Hi..

    Majority of the games have a Share button where it pops-up the official Android sharing dialog box (such as: WhatsApp, Gmail, etc) to share the app.

    Like this one below:

    How can I implement this using Construct 2.

    Thanks!

  • Alright now the image loaded perfectly.

    Yes! You can do exactly that effect to any image (Sprite) on Construct 2.

    Using Effects. (check on the left hand side, under behaviors). Use "Blur" effect, you can even set the amount of blur.

  • OK I think I made a mistake. It should be:

    X: random(Sprite.Width) + Sprite.X - Sprite.Width/2

    Y: random(Sprite.Height) + Sprite.Y - Sprite.Height/2

    Then also change the overlapping statement under this condition:

    On Object Created:

    X

    If overlapping with Sprite: then Destroy.

    Let me know the result..

    If it still doesn't work as expected, upload your capx and I'll trouble-shoot.

  • AH See !! I knew it

    Anyway, there are many different ways, but as long as your game will remain simple, you can use another condition with all those Keyboard conditions above:

    and overlaper NOT overlapping with Box.

    So it will look like this:

    -------------------------------

    Keyboard D is down . . . . . . . . . . . . then set Animation to "Walk" and simulate Right.

    X

    Overlaper Overlapping with Box

    ------------------------------

  • Check if some other event is forcing it to have the First "Animation" anywhere else?

    Like for example, you may have done: If D is down, then Set Animation to "Walk". That will prevent you to change the animation to "Push" or "Pull" while D is down.

    Otherwise, if no luck, upload your capx so I can trouble-shoot.

  • I cannot see the image you posted. But to make a blurred shadow, use the Brush tool (in Sprite Editor) and keep the hardness as 0 and black color with a reasonable size.

    You can even resize it or make a different shape, and later make its opacity to around 70% so that it looks realistic.

  • If that Sprite is a Square then you should create object at:

    X: random(Sprite.Width) + Sprite.X

    Y: random(Sprite.Height) + Sprite.Y

    However, if that Sprite is a circle or any other shape, you will need to do the same (as above) but also need to destroy (as you have already) those objects that do not fall under the collision polygon within that squared border of the Sprite.

    X

    If overlapping with Sprite: then Destroy.