dop2000's Forum Posts

  • It's easy:

    Sprite set angle to (Sprite.instanceVarAngle)

    Or did you mean something else?

  • No I meant in megabytes.

    I know my internet is slow, but it was loading at least 4-5 minutes...

  • Nice graphics!

    How large is this game? It was showing "Loading" screen for so long, that I thought it froze. You should add some kind progress indication.

  • Have you considered Car behavior? Here try this demo:

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

    (I believe you can open C2 project in C3)

    It's not ideal, but you may be able to tweak the values and controls further.

  • 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"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.