minigame's Recent Forum Activity

  • This should work:

    > Door overlapping Ground
        System-> Pick 0th Ground instance  :  Door Set room1=Ground.room
        System-> Pick 1th Ground instance  :  Door Set room2=Ground.room
    [/code:12xi4gcj]
    
    You can also use Ground.pickedCount expression to check how many Ground instances are picked in this event.
    

    Thanks again dop2000

    Ooooh, pick nth instance! Shit I miss that sonofabitch ^^

    But it didn't work right yet, all doors are getting room1=0 and room2=1 as if I was picking the two first grounds of the layout and not the two ones the door overlaps. And yes, they are as a subevent of Door overlapping Ground.

    I tried picking both ground separately by lowest and highest 'room', same problem. It seems to ignore the 'Door is overlapping Flor' event and pick only two rooms at all.

    Tried making For Each Ground and Door events to pick then all but non works. :s

  • Try "For each" as a sub-event:

    Door overlapping Ground
        For each Ground      ....
    [/code:1cznt9lu]
    

    Thanks dop2000;

    Well, this doesn't kill the riddle. I need to store ground.room to door.room1 (first ground) and ground.room to door.room2 (second ground). So I know what are the two grounds that the door is overlapping.

    I can do it setting room1 and room2 of each door manually, but the code would be very useful to use in other situations, and I didn't figure it out yet

  • I have an ebook that teaches how to deal with this problem, basically the workthroughs he says are:

    You can try changing the layers paralax to 0, 0; make the background image bigger than the window size; give the background a Anchor behavior and adjusting it, or add a layout color.

    Please try those and let me know if it works.

  • If 2 instances of object B are overlapping 1 instance of object A, how would I check a variable of both object B?

    To better explain:

    In my top-down project I have 'ground' sprites for the ground of each room (the ground of each room is separated). And between two different grounds there is a door. So the door is overlapping 2 grounds.

    Each ground has a 'room' variable that stores its IDD, to detect witch room the player is.

    I wanna know the 2 'room' values of both grounds that the door is overlapping. How would I?

  • Oh yeah, that works dop2000, thank you! : )

  • Hey, I've been playing with the Blend Modes for this, but is not perfect.

    I would like to have object B appearing only inside object A, and the parts that are not inside object A stays invisible. Any suggestion?

    Appreciated! : )

  • NN81, It's solved

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • NN81 got it, thanks!

  • I have a Loop that Repeats choose (1, 2, 3) times when a boolean is true. Problem is the loop repeats forever, even with the Trigger Once event.

    How would I make a loop happen 1, 2, or 3 times (choosing randomly) and don't repeat more than the chosen times. If chooses 3 times, event will happen 3 times then stop.

  • dop2000 got it, grateful!

  • Think of an enemy you just killed spawning blood particles, they would spawn, travel some distance and stop there, without fading or being destroyed.

    I've been playing with the particle properties, trying to set speed to zero after a while, but can't achieved this effect. How would be some good approach?

    Thanks in advance!

  • Hey, does it work in mobiles?

minigame's avatar

minigame

Member since 13 Nov, 2017

None one is following minigame yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies