dop2000's Forum Posts

  • I've had this issue for months, just learned to live with it.

    And it's not only in sprite editor, in some other parts of the C2 software when you right-click, some options (that should be active) in the drop-down menu are greyed out but still clickable.

    I think this only happens on Windows 10.

  • Tokenat() expression is perfect for this.

    s="100,Hello"

    Tokenat(s, 0, ",") will return "100"

    Tokenat(s, 1, ",") will return "Hello"

  • First, you are confusing people and scaring them away telling that this is a multiplayer game. It's not. Multiplayer in C2 means playing with other people online.

    Your mistake is in Axis() expression. It takes two parameters - gamepad number and axis index.

    So for the second player you should use Axis(1, index)

  • "On step" condition is only available in Construct 3.

    In C2 you can try pinning a bigger (longer) invisible sprite to the bullet. Use it to check for collisions with enemies

  • on the other hand moveTo and tweening can be done with a couple of events. It's always better to use events and avoid potential problmes unless we are talking about a plugin that saves you a lot of time.

    I would love to see how you can replicate LiteTween functionality with a "couple of events"..

    These plugins are very popular for a reason. And if Scirra is not planning to include them into C3 by default, they should at least assist with rewriting them for the new runtime.

  • Ok, so run the game in debug mode and check all 3 objects and their Health instance variables.

    If all objects exists and all three Health variables <=0, but the layout is still not changing, it means the code on your screenshot is not getting executed. Is it part of some parent event, or an events group that could be disabled?

    Try adding Browser object to your project, and insert Browser-Log "some text" into this event. Open browser console when running your game to see if this event gets triggered.

  • I'm guessing different amount of damage, depending on whether the bullet hit from the front or from behind?

    You can use angle() and anglediff() expressions.

    Something like this:

    Bullet on collision with Player
       If anglediff(Player.angle,  angle(Bullet.x, Bullet.y, Player.x, Player.y))<45   // player hit from behind
       Else  // Player is facing the bullet
    [/code:cmjqbzrs]
  • Should all 3 health variables be 0 or less, or just any one of them?

    If any of them, you need to change your event to Or-block (select entire event, right click -> Make Or-block).

    I also suggest running your game in Debug Mode, you'll be able to monitor all objects, variables etc.

  • You mean the green grid image in the Platform template?

    Remove the lock from the Background layer. Then double-click the background image, you'll see that it's just a small green tile repeated many times.

  • I don't think it's possible. You can try Browser.DevicePixelRatio. This is not the same as DPI, so it won't give you physical dimensions of the screen, but maybe it could still help to roughly estimate the screen size.

    See this post:

    https://stackoverflow.com/questions/216 ... -on-androi

    • Post link icon

    Have some patience and stop creating new posts! I already replied you here:

  • This is a C3 project, why did you post it in C2 forum??

    As I told you before, you should not change position of Physics objects directly (using non-physics actions of behaviors).

    To move Physics objects use only Physics methods - Apply Force, Apply Impulse, Set velocity etc.

    Anyway, make these changes:

    You can increase 10 to 20 or more for sharper control.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wouldn't. Rex abandoned his plugin and the new runtime is going to require a complete rewrite. We need an official plugin by Scirra or use standard events to accomplish the same thing.

    Do you have a link where I could read about that new runtime? Will these upcoming changes break all external add-ons, or just the MoveTo?

  • See these two files:

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

    https://www.dropbox.com/s/r1em8npglbdso ... e.png?dl=0

    (I downloaded them from some old post, which unfortunately I can't find now)