Asmodean's Forum Posts

  • I think the easiest way is to use the Browser-Plugin:

    | Global string myString‎ = 3*(4+3)+(4+2)/6
    | Global number myResult‎ = 0
    + System: On start of layout
     -> System: Set myResult to Browser.ExecJS(myString)
    
  • My guess, the moving animation is now triggered the whole time you press a moving key (left,right). So the the animation for firing will never be played completely and the the end of animation event will never be triggered.

    It also looks like the running animation is only the first frame, because it starts over and over again.

    You could differentiate between only running and running and fire together.

    It's hard to say what is the best without seeing the wohle game code.

  • That is because you are using a triggered event (with the green arrow). Try to use 'Key is down' instead.

  • Have you disabled the "Default Controls" in the Behavior?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ashley say "H.264" and not "MPEG-4 AVC".

    H.264 and MPEG-4 AVC is the same. If you use that for video and AAC for Audio it should work.

  • - .mp4 with AAC codec (audio play but not video > black screen).

    What video codec do you use? It should be "MPEG-4 AVC"

  • The orientation is wrong of your sprites. 0° is to the right, so you have rotate them 90° to the right in the Sprite-Editor.

    And then this should work:

    System: For each aim -> aim: Set angle toward (aim(LoopIndex+1).X, aim(LoopIndex+1).Y)

  • It should be arrow(IID).angle

    With IID (Instance ID). So arrow(0).angle for the first instance , arrow(1).angle second ect.

    Give it a try.

  • The first 4 boxes have Month=11 and Day=0 the next have Month=0 and then Month=1, but wie have at least here in Germany Month=11 and Day=1 with Date.GetMonth(Date.Now) and Date.GetDay(Date.Now). So no box will be selected.

  • It works but none auf your boxes have the correct value for day and month so none is selected.

  • Your event is triggered the whole time. So Wait and flash is called many, many times and my guess that's to much for the flash behavior and it doesn't flash but the coin goes invisible.

    You could use instead the triggered event 'on collision' or if you want to use overlap you could use the timer behavior on the coin.

  • CompressPng and PNGoo change the color depth to 8 bit (256 colours) and using a dithering algorithm like Floyd-Steinberg. In most cases there will be no visible difference but if you have colour gradients it can be visible. So there is loss of information.

  • Thanks dop2000. My GPU is now on Chrome's blacklist, that causes the problem.

    gibbon you are right the one layer rotates in the center of the other. But one layer can have the pivot point changed. I don't think there is another way with layers. You could make a sprite and pin all of your objects to it and rotate that sprite.

  • You could try to set the parallax to 0 to all layers that should not rotate and set unbound scrolling to yes. Now use scroll to to the pivot point of the rotating layer and rotate the layer.

    I made a capx:

    drive.google.com/file/d/1_1O8Q0FOVjW-JW16JRSgBmx7aFlZPA7u/view

    You could do me a favor and look if you have also a horrible performance if import that capx into C3.

    It works very well in C2 but if I import in C2 the CPU usage is ver high.

  • Don't know if that helps. It calculates only the distance for the same height (y.coordinate are the same) of player and enemy.