oceldot's Recent Forum Activity

  • they should not be nested inside the first condition.

    on mouse clicked add 1 to difficulty

    if difficulty =1 set animation frame to 1 and set system difficulty to medium

    if difficulty =2 set animation frame to 2 and set system difficulty to hard

    if difficulty =0 set animation frame to 3 and set system difficulty to easy

    if difficulty is => 3 set difficulty to 0

    Now I get it. Thanks a lot

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe I misunderstood something.

    This is what I tried:

    [attachment=0:30qqi3u2][/attachment:30qqi3u2]

    The default global variable Difficulty="Easy", while the default value for the variable Difficulty on the object DifficultyIcon=1. Frame 0=Easy, Frame 1=Medium, Frame 2=Hard. Howeverm this doesn't seem to be doing anything.

  • Just add an instance variable example "clicked"

    on clicked add 1 to "clicked"

    if clicked =o button =default

    if clicked =1 button = state 1

    ......

    .....

    if clicked = or bigger than 4 set clicked to 0

    Oh, adding to a variable on each click... I was trying with all kinds of combinations using variables, but didn't try to actually add a number each click.

    Thanks, I'll give it a try!

  • I'm trying to create a button that will toggle between three states (default=state1, clicked once=state2, clicked twice=state3 and if clicked again, back to state1).

    This is easy if you only have two states, using Else, but I would appreciate a hint about how I can achieve this with more states.

  • Try regenerating the pathfinding obstacle map on start of layout.

    Oh, my bad. I'm sorry, I didn't know that was required. Seems to be working.

  • Problem Description

    Solid objects in one layout will have their collision polys present in the following layout.

    If you have a layout with a solid, and then move to the next level (where this obect is not present), the collision polys will still be there.

    Attach a Capx

    [attachment=0:3ekz0st3][/attachment:3ekz0st3]

    Description of Capx

    A game I'm working on where you can see this (very annoying) behavoiour.

    Steps to Reproduce Bug

    • Open layout "1"
    • Move to the next layout by moving both characters to the red square
    • Observe the solid objects in the next layout (the cabin and the gravestones)
    • Move to the next layout again
    • The solid behaviour will be in the next layout, even if the objects themself are not there

    Observed Result

    Collision polys (?) are present in layout even if object itself is not (and the object is not Global)

    Expected Result

    Collision poly should not be there when object is not there

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Installed app Android: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Win 7 SP1

    Construct 2 Version ID

    Release 168

  • This is looking more and more as a Construct bug..? I'm about to lose it completely over here, this is driving me insane. Even if I create a new layout without duplicating the "pixel" object seems to be present when I move from the first layout to the other, causing the character that is inside that object's collision polys to get stuck.

    Or am I blind?

  • Comment: you don't need to duplicate your code in every eventsheet. Put common code in a separate eventsheet and Include it in the per-layout eventsheet.

    I'm not sure exactly how I would do that? I mean, I know I can assign the same event sheet to all layouts, but what about when I need to add new functionality that I only want on one of the layouts?

    Or do you mean I should use a separate event sheet on all layouts, and then add another event sheet with all the common functionality and then use the Include event sheet functionality to add to each of the layouts?

    Edit: I believe the last thing I said works quite well. Not sure why I haven't done that before.. Thanks!

  • Impressive stuff, guys.

  • Not sure what the problem is for definite but I think at the start of "layout 3" Dmitry is somehow overlapping a solid because if you move his sprite to the right in the layout then play all 3 levels he moves as he should.

    Still looking

    ***EDIT - The problem is also on "layout 2" if you try to move one of the players to the far left trees he will won't get there as if there is an invisible barrier.

    Yes, thanks, I saw this myself, with the "Pixel" object. It's a mystery..

  • unfortunatly, i havne a free edition and i can't help you.

    if you can describe your problem and attach a little sample, we can help.

    Thanks, not sure exactly how I could easily do that.. You are not able to open it at all? Maybe it's because I'm using Families.

  • I think it originates from the invisible object "Pixel", which is placed in layout "1". But I don't understand why.. it's not global (and not in the other layouts).

oceldot's avatar

oceldot

Member since 23 Feb, 2014

None one is following oceldot yet!

Connect with oceldot

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies