PapitoMyKing's Forum Posts

  • Hi!,

    So, I've been stuck at this issue for the past 2 weeks. Sometimes the player would ger stuck inside a moving platform. The collision boxes are all set to bounding box. The platform origin point is at the top, and player's origin at the bottom. Jumpthrough is enabled.

    TL;DR a video of the issue:

    Thanks!

  • PapitoMyKing

    Not a bug.

    Your orign points for both your player and platform are set to the bottom.

    If you change the origin of the platform to top, that will help.

    Also the collision polygon for 'player' is wrong, which means that as it approaches the edge, there is nothing to collide with.

    Why not just use bounding box for all of your collisions? For something as simple as this, that's all you really need.

    Thank you very much, I'll apply those fixes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    My character with platform behaviour clips through the ground. Hitboxes are rectangles without inclinations.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/20062568/bug.capx

    Description of Capx

    I have a layer with several platforms and a layer with a restart button if the player falls. Press arrows to control.

    Steps to Reproduce Bug

      • Get on a platform.
      • Walk slowly to the left, press and release the left arrow very quickly.
      • When he gets to the ledge, if you are walking slowly left, he will fall form the top part of the platform to be "grabbed" inmediately again, and be able to walk through the platform if you press right.

    Observed Result

    Player doesn't fall if he is walking slowly to the left.

    Expected Result

    Player to fall when he is no longer on the platform

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 7, service pack 1

    Construct 2 Version ID

    V. 212.2

  • What if you have all the positions "hard coded". So, if the number is 3 or lower, they ll spawn at x=[0,120,240] y=[0] and if its bigger they will spwan the first line as before and then you add another "Y".

    Isn't that what I have at "4" on the event page?

  • Hello everyone!,

    I've trying to randomly spawn some objects with the "while" command in a 4x4 arrangement, and everything goes great until I have to change the "Y" position.

    Ideally, it will look like this:

    [attachment=2:d8y3hykh][/attachment:d8y3hykh]

    But I'm ending up with this (been trying with only 5 objects atm):

    [attachment=1:d8y3hykh][/attachment:d8y3hykh]

    Sometimes I get only one object in the 1st row, and four on the second, etc.

    This is my event page:

    [attachment=0:d8y3hykh][/attachment:d8y3hykh]

    My logic is the following:

    When i>3 (meaning that 4 cards have been laid)

    Create object at x,(new Y position, because it is a new row!)

    I've been smashing my head against the keyboard for days because of this, any help is greatly appreciated!

  • Hello,

    So, I get everything into a zip file, with the index file on the root directory. I upload it to Newgrounds, and when I preview the game, it freezes on the loading screen.

    Any ideas/solutions?

    Thanks.

  • mp3 is best avoided due to the ridiculous licensing requirements of the patent holder.

    https://www.scirra.com/blog/44/on-html5-audio-formats-aac-and-ogg

    Well, the format doesn't matter at the end, it could be wav or ogg, I just want the music to be saved on the player's device.

  • Hi,

    I'm making a "make your own song" game, and I want the game to export a piece of music that would be made by the player. Not sure if that's even possible with C2...

  • I am not sure what you mean by layers in terms of music, but you should use a variable. For example, when player turns music on, set VariableMusic to 1, and if they turn it off, set VariableMusic to 0. Than save that variable to webstorage so that everytime you start the game, the setting is saved.

    Thank you!

  • Hello!

    So, I have a button to stop music and other to turn it on back again. Now, how do I let C2 know that when it creates the layer 2 e.g., it remembers that the music was set to off, and that it should not play it?

    Thanks!