dop2000's Forum Posts

  • Put a second tilemap (light mask) on top of your main tilemap. With tiles ranging from transparent to 100% black.

    For better results you can add some blending effect to it, for example "Multiply".

  • matrixreal

    Can't you simply try it and check both folders?

  • Zion

    The problem with your code is that after you set animation frame to 1 in event #2, you set it back to 0 in event #3.

    Simply add Else condition:

    Or you can do this all in one event and one action:

    On touched sprite-> Sprite set animation frame to (Sprite.AnimationFrame=0)

  • Q1: it's hard to say what was the problem without seeing your events.

    If you were changing the angle of the aiming object without picking root object first, then no wonder it was affecting all aiming objects.

    Q2: "Trigger once" condition does not work per object or per container. After the first object reached Y coordinate (and stays there), this event will not be triggered again when other objects reach the same coordinate.

    Instead of "Trigger once" you should add an instance variable "bulletIsFired" to your object, set it to true when it reaches Y. And use it as a second condition to prevent firing again.

  • It should work. Please share your event sheet or capx file.

  • AstraRune

    Try running the game in debug mode (Ctrl-F4)

    Check two things -

    1. the number of objects instances on the left panel. If you are spawning lots of objects and not destroying them, you'll see it.

    2. and the number of collision checks. Too many collision checks (over a thousand per tick or more) will slow the game down.

  • See this post:

  • You guys need to read/watch some tutorials.

    Double-click anywhere on the layout -> Keyboard -> Insert.

  • Repeat 100 times

    ...Create object at X=500+100*cos(random(360)) , Y=500+100*sin(random(360))

    Where (500,500) is the center, 100 is the circle radius, random(360) is random angle.

  • Add Keyboard object to your project.

    Add event:

    Keyboard -> On key pressed (Space)

    Note, that "On key pressed" and "Is key down" events are different.

    If you need the action to be executed once, use "On" event. If you want it to continue executing while the key is down, use "Is" event.

  • You can use Text Box object.

    If you don't want to let users change the text, add this event:

    TextBox on text changed -> TextBox set text to "your text here"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, you can do that.

    An easier way would be to add all 21 fruits to the layout and then delete random 18:

    And then move the remaining 3 sprites to their predetermined locations.

    There are lots of other ways how to spawn objects without duplicates, you can search this forum or tutorials.

  • Browser object has "On suspended" and "On resumed" events.

  • This is how you fire a "spray" of 5 bullets with 4 degrees between them:

    For x= -2 to 2

    ...create Bullet at Character (x, y)

    ...Bullet set angle to (Character.angle + loopindex*4)

  • You can pass data in URL parameters.

    website .com/mygame.html?mypath=~wp-content~plugins~foo-game~scripts

    Then use Browser.QueryParam("mypath") to retrieve this parameter and replace "~" symbol with "/"

    There may be other ways too, but this is the only one I know.