Radiowaves's Forum Posts

  • This works, thank you!

    Now comes the question: If I have 100 items stacked, do I need to make this inverted condition for each one?

    I suppose I could use a family, but managing it would be terrible.

  • I have a problem in my project where there is Sprite1 stacked on top of Sprite2.

    When I click on Sprite1, I add 1 to global Variable1.

    When I click on Sprite2, I substract 1 from global Variable1.

    Currently C3 registers both events and Variable1 results in 0, but it should be -1.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Tile rotation is set with a string/boolean message. But I would like to do this mathematically, (int(random(0,4))*90 degrees.

    Right now only way I can manage is to create a local variable/parameter and make a condition for each parameter value, which is cumbersome waste of space.

    Suggestions?

  • *sigh* I overlooked the "At" function. Thank you!

  • 1. Import it as a sprite.

    2. Add a mouse or touch object to your project.

    3. Make the event: "On object clicked" -- should be available after you added the mouse object.

    4. Read a manual

    5. Read a beginners tutorial

  • Ok as I understand it the "|" operator is basically an if-else statement that returns 0 or 1. It does not work with just pure numbers, it only works with conditions? How I implement this to check an array value I have no idea.

    Did it your way, can't use array because there is no way of checking the array value in expression like you could do it with tilemap. So I used tilemap and came up with this:

    This is quite insane in my opinion, all because "or" could not be defined correctly.

    I would like to do the floor calculation beforehand and keep it in an array to save computation time since there is a lot to check like this.

  • Yeah I could add another "else" statement or mess around with nesting, its getting rather complicated this way. Why does the | not work? What am I missing?

  • Add both (or more) if you're doing multiple and then right click on the far left of the conditions and select "Make 'or' block"

    As I stated in my post this is not the case I am looking for, it simply won't work for what I am trying to do. The capx file is just a simple example of how | operator is used (just like in the manual), not the project itself.

    How do I do this?

  • I got this when I was asking how to change them a few weeks ago. I don't know if I am missing something else but when I push any of the ASDW keys it freezes the mouse and curser iv tried turning default controls on and off moving it to the top and bottom of the event sheet but its the same.

    (8-Direction Behaviour)

    *When Key "W" is down -- then

    --> Player Simulate control "Up"

    *When Key "S" is down -- then

    --> Player Simulate control "Down"

    *When Key "A" is down -- then

    --> Player Simulate control "Left"

    *When Key "D" is down -- then

    --> Player Simulate control "Right"

    (Platform Behaviour)

    *When Key "W" is down -- then

    --> Player Simulate control "Jump"

    *When Key "S" is down -- then

    --> Player (Fall Through)

    *When Key "A" is down -- then

    --> Player Simulate control "Left"

    *When Key "D" is down -- then

    --> Player Simulate control "Right"

    You are using platform and 8 direction at the same time? Aren't those two colliding with each other or sort of doing unnessecary double work?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I red the manual. The "|" should act as "or" statement, but for some reason I can not get this to work.

    Example CapX: https://drive.google.com/open?id=0B5xC9 ... 0VqMncwclU

    I know you can add "or" statements to whole block, but this is not suitable for me because I need to check multiple chunks of conditions. If one of the chunks is true (all conditions met in that chunk of conditions) then do the action.

    Help appreciated, am I doing something wrong or is it a bug?

  • Problem Description

    Sometimes when loading a new sprite strip to existing sprite, construct2 freeses. Close construct from task manager, start it again and the problem persists. Restarting the computer helps. But also pressing the "Alt" key brings up the animation strip properties panel and the problem is gone.

    It seems the properties panel gets stuck somewhere, either under the general windows/tabs/panels or somewhere unseen when loading rather large spritestrips. Maybe a memory issue and not construct related, but maybe worth to look into.

    Attach a Capx

    Capx does not help

    Description of Capx

    -

    Steps to Reproduce Bug

    • Step 1: open existing large animation (20 frames does it to me)
    • Step 2: replace the animation with new spritestrip
    • Step 3: SOMETIMES the sprite strip properties panel does not pop up
    • Step 4: hold "Alt" and it can pop up

    Observed Result

    Spritestrip properties panel does not pop up

    Expected Result

    Spritestrip properties panel should pop up

    Affected Browsers

    -

    Operating System and Service Pack

    Win 7 SP1

    Construct 2 Version ID

    200

  • What about Tilemap.PositiontotileX(Sprite.X)? instead of percise numbers? If you change the tile size you have to rewrite it. Additionally you can even add SnapX.

  • ... And I am sitting here in 10-30FPS on my 6 year old laptop. Things started to go wonky in 2d just when HTML5 came....

    Like I should buy a high end gaming pc just for 2d web games.