dop2000's Forum Posts

  • piranha305 Nice demo, thanks! Do you know how to get binary data (Base64) from an existing sprite, or from drawing canvas?

  • If you only want a visual effect (don't need to change collision polygons), you can use blend modes. See "Blend modes" template in C3 editor, here is the direct link:

    https://editor.construct.net/#open=blend-modes
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • newt Yeah, but is there a similarly easy way to extract Base64 from image, without plugins?

  • tomhaiger

    This is easy, just add "Slder_button isDragging=1" condition to the event #25

    .

    Also, where did you get the WebStorage plugin?! It has been deprecated at least 3 years ago! You need to use Local Storage instead.

    And, you probably know this, but the sprite cursor will not work with Form Controls (your big OK button is a Form Control).

  • Pode's addons can be downloaded from his repository:

    github.com/Pseudopode/construct2_plugins_behaviors

  • You need to use "wait 0.5*loopindex" in the first line, not your static variable.

    The first loop (for "IndexX") is actually executed in one tick, but it creates many Wait threads. If you use static variable, at this time it's 0, so all these threads will become "Wait 0". If you use loopindex, then they will be scheduled with 0.5s increments.

  • That's a clever solution! Much easier than what I had in mind.

  • Making the car to only turn on intersections is easy - just put an invisible square sprite there and ignore left/right keys if the car is not overlapping it.

    But if you want the car to make a naturally looking 90-degree turn and enter its lane properly - this part may be tricky.

  • I don't really understand how your game is supposed to work. You need to post your project, or maybe a youtube video of a similar game.

  • Put the JSON string with character spacing data in here:

    I also highlighted other important fields.

    If you configure everything correctly, you will not need to change anything with events.

  • Why did you put a dot in "savedWithRelease" line? If it contained 13802, you need to replace it with 13700

    If this doesn't help, please post you file. I don't know what you are doing wrong, but it will definitely be easier to change it myself...

  • Try this:

    Enemy has LOS to player
    ...Enemy bullet speed<1000 : Enemy set bullet acceleration to 500
    ...Else : Enemy set bullet acceleration to 0
    
    
    PlayerBullet on collision with Enemy : Enemy set bullet speed to 1
    

    So every time player bullet hits the enemy, it will stop, and then will start accelerating again, up to the maximum speed of 1000.

    If you don't want it to stop, then instead of 1 you can use something like min(100, Enemy.Bullet.Speed) or (Enemy.Bullet.Speed/2)

  • You can definitely do this with blend modes.

    Set layer transparent=no, color=black, Force own texture=yes

    Put your circle sprites on this layer with blend mode "Destination out".

  • It's actually much more complex than that, especially with only one family for all NPC types. Here, I made a little demo:

    dropbox.com/s/1zqazbbvfhnraqz/ChasingAnimals.capx

    This can be done easier (the picking part) if you make separate families for predator and prey objects. You can actually add the same object to multiple families, for example a Wolf sprite can be in Predators family and in NPC family. On Predators family you add instance variables only applicable for predators (for example, attack speed etc). On NPC family you can add more general variables, that apply to all NPCs, like health.

  • Ashley, thanks for the explanation!

    Since "Set color" action is essentially the "Tint" effect, why did you add it as an action? Was it for convenience and ease of use?

    Also, when using both this action and some other color-changing effect, in which order are they applied?