dreaa's Recent Forum Activity

  • I've found an other way to do it, and it simplify my next iteration of the work. I've just put simple cases into the sprite and the sprite that has to move just go onto the cases, so it can't move out of it.

    But in the first place I was moving it by adding X pos + sprite size to the new X pos till it is overlapping. But the way I need to use it, it wasn't appropriate in the first place.

  • Yeah I've tried and it doesn't show the result I want. My overlapping object has to move "inside" the overlapped, and pinning it would stop any movements.

  • Hello !

    I have an object overlapping an other one and it absolutly needs to stay in this condition, but I don't know how to do this.

    To illustrate it properly, I would like to adapt the " Bound to layout " behavior to a bound to object.

    Regards.

  • Hello,

    I am kinda stuck (again .. ><), I'm doing a board game and I'm stuck about the pieces' deplacements.

    Take a look at this. ( I think you gonna need to open it in full tab)

    On the left you can see the board, ready and prepared for a game. And on the right how it works, so you need to tap the piece you want to move and click on the case it needs to go (both are already scripted and works).

    Now the problem become from the rules, the piece can move from 1 to 1 case and only in 4 directions.

    So I have to create an highlight on neighboor cases so I can tap on it to move the piece. The problem is, I don't know how to create this part, I have already thinking about creating a collision box with a collision box that goes on the other cases, but the problem is I have exceptions (like the cases with no symbols, a piece can't go back in it after exiting) so generate all of them might be rought and long. Same for creating the special collider for the box, kinda ugly x). Like all the solution itself.

    So if anyone of you knows a proper solution, or if there isn't (which I clearly doubt since i'm far to be a genius x) ) just tell me.

    Regards.

  • Oh nice, exactly what I wanted, thank you! Always forgot to use functions ><.

    I needed it to use it in a board game, the animation are the selectable cases and after the move I needed to reset it for the next turn

  • Hello,

    I'm kinda stuck about the parents-children event. I want to play an event AFTER an other one but I don't want it to be limited by the parent system.

    Take a look at the screen to make it easier to understand :

    Here I have an event about the tap gesture on " plateau_cases " and the conditions about it. This one works perfectly, but the problem is about the " for each ", I would like it to apply to ALL the cases I have (48 for the record) but the problem is with the children system it is applied to only the one that has been taped.

    So I've tried to put this out a system of parents-children, but the problem is, it blocks my previous instructions, so the frame start at 0, never change to 1 and it block my game because I need the animation to be played.

    So I need to know, if there is a way to "reset" the cases by putting the frame animation to 0 for each cases without being limited by the only cases that has been taped.

  • Oh ! Thank you, works perfectly <3

  • Oh yeah, way easier with the way you explain it.

    Just a question about this, I want to access to the string, not the number. But when I look in the debugger I see a number, not the real value (like "top").

    Just like the screens shows :

  • It's not really what I'm looking for.

    I have a list with height directions that I need to attribute to the variable "Value" for each pieces of my sprite, but the problem is I need to attriburte the direction only 1 time

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well i found the loop, I'll just use the for each instance, which works perflectly and it's easy.

    But I still have the problem about the choose, if only a "choose once" could exist haha

  • Hello !

    I am trying to add a random value to a variable. Let me explain more clearly.

    I have a variable " Value " on a sprite, which has to get a random value at the loading of the layout.

    There is where am i at the moment :

    So, it choose an ID between 1 and 8 (there is 8 occurrence). Then it applies to this specific one, one of the value in the choose. From there everything is working.

    My problem is, I need 2 things :

    • A loop (but never used it, so i don't know which one and how to configure it) so I can apply it to every occurrences.
    • Something to put no duplication into it because each value (top ...) as to be attribuate only ONCE (and this is very important).

    After that, I have to do this with an other loop to apply to 8 new occurence (black and white ones) and this one has to have some values multiple times and i'm lost aswell.

    Any helps is welcome!

    Regards.

  • No that's not what i wanna do, I just want to use ctrl for both colour, ctrl will set blue if the ship is red and it will set red if the ship is blue. And while I was typing my message I just got the reason it wasn't working xD.

    I've done

     if (ship is yellow or red ) do this
    OR
    if (ship is yellow or blue) do that[/code:3gm1el12]
    So yeah it was like " OK it is yellow, but i need to go on blue or red ? I'm fuckin lost u idiot" :c
    
    I'll just have to think which color set in first, maybe on a random it could be nice. I will edit after my tests
    
    EDIT : Yh it's working now, i've set on the first time ctrl is pressed a random color and the state that goes with so it's working perfectly, thanks all for the advices
dreaa's avatar

dreaa

Member since 29 Sep, 2016

None one is following dreaa yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies