dop2000's Forum Posts

  • That's how float numbers work.

    If you need only 1 digit after decimal point you can do round(x*10)/10

  • I recommend you check collision polygons for all frames in all animations - ideally they should be identical. And Origin image point should always be in the center. This will save you lots of troubles.

    Many people use this trick - add an invisible sprite with just one frame and platform behavior, name it BossPlatform. Remove platform behavior from Boss sprite. Pin Boss to BossPlatform.

    You will be able to control BossPlatform, and animations/polygons on Boss sprites will not interfere will platform movements.

  • pez263

    Fixed:

    https://www.dropbox.com/s/vhbrwmtpprzts ... .capx?dl=0

    It kills me to see such inefficient code.. I made some changes, hope you like them. There are two function that display text in two different ways, you can delete the one you don't need.

  • pez263 Could you share your capx file?

  • Then you'll need a server with database and you'll need to communicate with this sever using AJAX or JS.

    See my first comment, there are lots of tutorials.

  • Add debug output to your event 109, for example:

    Browser -> Log "Boss Jumping"

    Then open console (F12) in your browser and check if it's triggered.

    If it is, but the boss is still not jumping, my guess is that when you change animation to "Jump", the collision polygon appears above the ground, so the platform can't perform the jump.

    Try changing animation after "Simulate jump" action.

  • Like Tilemap?

    In Construct 2 click "File->New" and select "Example: Tilemaps"

  • Of course it's possible. Just change "On key pressed" to "Key is down"

  • Thanks R0J0hound ! This is a really nice demo!

    Is it possible to use custom web font? (I don't know JS...)

    I mentioned Star Wars opening text as an example of "a creative and fun idea", but it will not fit the purpose - reading lots of achievements like this will be very annoying for the player.

    I don't necessarily need very cool visual effects, just something more interesting than 3 buttons with 3 text areas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can access Local Storage only from the game.

  • You can use "Overlapping at offset" event.

    If your character is crouching, on every tick check if its "Is Overlapping Ceiling at offset (0,-10)" for example.

    If overlapping, remain crouching, else set full size.

    Or probably an easier solution would be this:

    On every tick
       Character set size (full)
       Character Is overlapping Ceiling -> Character set size (crouching)
    [/code:pkpi2kge]
    
    Because it's done in one tick, the character will only be rendered once - either standing or crouching.
  • Why can't you open my project?

    If you have an older version of Construct2, rename my capx file to zip, unpack to a folder, open .caproj file in Notepad and edit this line:

    <saved-with-version>24400</saved-with-version>

    You can change it to 23900 or whatever version you have.

  • Letters as sprites? I'm planning to release the game with at least 3 languages, among which is Japanese. This means hundreds of frames and many hours of work... So no, I can't do this.

    Besides, the text is not static. How do I calculate the exact positions of each letter? I guess this can be done with a sprite font, but again this will be not be an easy task.

  • Or you can set "Global=yes" for this sprite. When you change layout, the sprite will not be destroyed and will keep all its properties, variables etc.