dop2000's Forum Posts

  • You can paste all sprites of the avatar onto a DrawingCanvas object. If you need it to be a sprite, you can then transfer the image from DrawingCanvas into an empty sprite.

    DrawingCanvas paste Face
    DrawingCanvas paste Eyes
    DrawingCanvas paste Nose
    ...
    Wait 0
    DrawingCanvas Save image
    Wait for previous action to complete
    EmptyAvatar load image from DrawingCanvas.SavedImageURL
    
  • With the LOS bar sprite, you should still be able to simply pick the nearest enemy to the player. Is the bar in the same container with the enemy? Then you can do "Bar is overlapping Player, Enemy pick nearest".

    I can't tell what the problem might be with the pathfinding without seeing your project file.

  • Why are you using a line-of-sight bar sprite, and not Line Of Sight behavior?

    If you configure the LoS behavior, you can simply do:

    Enemy has LoS to Player
    Enemy pick nearest to Player.x, Player.y
    
  • If you are creating instanced in "On start of layout", you need to wait until they are created before you can pick them. Add "Wait 0" action to the end of event 1. Remove "Wait for previous action to complete", it won't help here.

    Also, you can pick by comparing instance variables, no need to use "System pick by evaluate". Simply do "Card compare variable index>=0"

  • The difficult part is math. If you understand the math required to alter car movement when it's hit with a blast, you can do it with events, no need for a plugin.

  • Try updating video drivers, rebooting.

  • Use these:

    int(ColorPicker.R)/2.55

    int(ColorPicker.G)/2.55

    int(ColorPicker.B)/2.55

    I can't explain why, but it should work :)

  • Sorry, I can't help you with JS, but it's very easy to do with events.

    Add FileChooser and AJAX objects, and this event:

    .

    You can also use NWJS action "Show open dialog" and NWjs.ReadFile(path) expression.

  • Are these 200 objects all fading at the same time?

    I don't think there is a simple way to do this Fade behavior. I would suggest adding all these objects to a family and adding LiteTween behavior on the family. You will still need to change the events manually, of course..

  • I believe Set Color effect takes values 0-100, so you need to divide R,G,B values from Color Picker by 2.55

  • You know, at some point you're going to need to write a demo for how to add credits to a game

    :)

    You can manually place the camera sprite above the player on each layout. Or add this action:

    On start of layout -> Camera set position to Player.x, Player.y-250

  • You need to rename the animations in B1Who2 sprite. For example, where the puppy is playing with the butterflies, the animation should be "PuppyButterflies".

    Other small issues - on "the brown puppy" text, fix the value in the Who variable, it says "Pupply". And you have two copies of B1When2 sprite for some reason.

  • Web font takes some time to load (about 1 second at most). I don't know why you need to refresh the layout though.

    What I did in my game - I placed a text object with just a dot "." on the Loader layout and hid it behind the logo sprite. So when the loader layout starts it load the webfont for this text. And then, when my next layout starts, the webfont is already cached and appears immediately.

  • Well, you can't just copy-paste my code into your project and expect it to work.. First, you need to load the JSON data into the array. And in your array player position is at index 2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads