Valnuss's Forum Posts

  • 4 posts
  • Hello guys,

    I got the same problem with repeating sounds by hovering and this thread was kinda helpful but now the problem starts to get a bit different and I dont know how to solve it anymore.

    Like I said a sound should play each time when I hover an object. Because of the repeating problem I used 2 conditions. I also use pngs with transparency wich cause that when I hover the object on a half-/full transparent part, the sound starts to loop again infinitely. That's why I made an invisible box to triggter the event.

    he Problem now is that the sound loops right at the beginning of the layout until I hover the button 1 time. Then it's working just the way it should!

    Here are the necessary code parts. (I "scripted" just 1 button but I show you all of them because I think it could help understand the situation better)

    <img src="http://s14.directupload.net/images/130329/65nkx86d.jpg" border="0" />

    <img src="http://s7.directupload.net/images/130329/6h6w8ixt.jpg" border="0" />

    Could anyone help me? :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, I edited my post again because I tried it also with "create object". The positions are right and the sprite spawns there BUT it is still clickable in THE MOMENT it is spawned - in this case the moment I click at the upper half of the overlapping sprite.

    And yeah, I tried it with the variable. The problem here isn't the possibility to put an object out of sight and bringt it back. There are many ways to do it. The problem lies in the time/moment this object is sent back. I tell you, try it by yourself. It won't work.

    Added a wait action for 0.0001 seconds and it's fine, just as expected ;)

  • Sorry, but that doesnt work ;)

    I tried it. If I move the buttons out of the layout and say that they shall appear at the former coordinates in the layout they will be clickable like they never vanished. Yeah, really. If you dont beleive me, try it :)

    In my case there's a big sprite in the center, overlapping all others.

    2 Buttons in the background, 1 in the upper half and the other one in the lower. I can click "through" the overlapping visible sprite and activate at the same moment the button behind (and yeah, like I said, EVEN in the moment when they reappear with the click they get activated..maybe I need some time trigger to let them appear 0.001 seconds after I clicked)

    I also tried the option with destroying and spawning and also creating but it doesn't work the way you expect. Same problem like above.

    Edit: I try to do it with a variable but it still doesn't work the way it should -.- Same problems like in the other cases. There are clickable in the moment they spawn. You need a timeout, there is no other way to solve this problem (besides a new layout)

  • I got the same problem. The different layer number doesn't help because your sprites are still clickable thorugh the layers even if they are invisible.

    It seems that you really have to create a whole new layout for each status OR try it with this comparison method (I'm gonna try that now). That's kind of annoying =/

  • 4 posts