LittleStain's Forum Posts

  • Sounds like a problem with your collision polygons, but without seeing the capx that's only a guess..

  • Would giving the enemy bullet behaviour and setting it's angle towards the player work for you?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Every x seconds is counted from the start of the game, not the start of the layout..

    To do something in timed intervals you might want to try the timer behaviour..

  • Would using the sine behaviour (value only) to set the opacity of the object work in this case?

    Else it would be a case of having a fade in behaviour and a fade out behaviour and a timer behaviour to set the required time between intervals..

  • Would it be possible to create a "detection"-sprite at the position you want the player to be able to use the ladder and disable the solid behaviour if overlapping that sprite and touching the down button?

  • Easiest way would probably be putting the enemy-box and the enemy animation in a container and having them created together, so they always reference eachother.

    Another way would be to pick the nearest enemy box and have the enemy set an instance variable to it's uid..

    then if the instance variable is the same as enemybox.uid set the position..

    Instead of setting position every tick you could ofcourse also use the pin behaviour..

  • Although you seem to be going the right way, this capx might come in handy

    Select only 3

    When the player selects more than 3 the first one he selected gets automatically deselected.

  • To get the angle between the player and the enemy you can use

    angle(player.x,player.y,enemy.x,enemy.y)

  • Hello everyone. At the end of the day, I used a combination of the recommended solutions (thanks guys) and it worked out.

    Settings_Switch is a global variable

    Here's the preview:

    https://gyazo.com/061fef7473d18dbf2cf92866be288e1b

    Yep, that will work..

    You could remove the Settings_Switch > 1 event and make the action of the first event

    system set Settings_Switch = 1 - Settings_Switch

    It's one event less..

    Also I'd make the third an fourth event subevents of the top-event, because they only have to be checked at the time of the toggle..

  • Disabling event 49 in your event sheet solves the problem..

  • I'm not sure what you mean?

    Have you exported your app to APK, or are you trying to access a website through an icon?

  • Sorry, I still don't understand what you are trying to do..

    an angle is meassured in degrees (between 0 and 360) and you want to use the x-coordinate of an imagepoint for that?

    Could it be you are trying to set an angle towards an imagepoint or from an imagepoint to somewhere else?

  • If you could share a link to the file, either uploaded on dropbox or something similar, I'd gladly take a look..

  • > I guess you could create all of those movements with the sine-behaviour..

    >

    In that case how? I can't find a a sine option that makes the sprite go in circles. I can't find a sine option that makes the sprite go in half circles. Tell me how i can use the sine behavior to create these movements. I tried combining a sine vertical option whit a sine horizontical option to make the sprite move up and down and left and rigth but it only makes the sprite move diagonally. Sine can only make a sprite move short distances so a a other way of movement would be better.

    I'm not sure what you mean..

    Give the sprite horizontal and vertical sine, give one of those an offset of 1 and voila, circle..

    Increasing the magnitude increases the "distance", so it's not limited to short distances..