imuniz's Forum Posts

  • Oooh I see, you simply use Object.Pin.PinnedUID . Nice tarek2, many thanks man! Be blessed.

  • Hey, since yesterday I'm having a white screen when starting the preview in NW.js, and a delay for the game to run. I'm not using loader layout, what could it be?

    Edit: this is happening in multiple projects, not just one.

  • There is some way to identify in witch object the pin object is pinned?

    Like: ObjectA > Is pinned to ObjectB > Do this

    ObjectA > Is pinned to ObjectC > Do that

  • dop2000 All working fine for me, they are moving along with the popup as expected. Yeah, I replaced then in the game, it is better than I thought. Thanks!

  • dop2000, Yeah!!!

    I see that I need to work with less events.

    Thank you very much!!! Be blessed.

  • tarek2, Nice, you got it!

    Many thanks!!! Be blessed.

  • tarek2 , Thank you very much! Is kind of that.

    What I need is to bring the popup In and Out without changing the value of the Slider Bar (slid_line).

    Like: If I bring the Popup In and set the value of the first bar to 60, when send the Popup Out of the screen, the value of the bar would remain 60.

    What is happening is that I set the bar value to 60, and when I send the Popup out of the screen, the bar value goes to 0.

  • ultrafop, Man, I'm sorry, as a noob I didn't get you... Perhaps you could show me with the .capx? Please? If you would, I have no hurry.

  • Hey ultrafop , dop2000 , brunopalermo , Thank you guys!!

    I agree, my explanation wasn't very good :s...

    Ultrafop, I'm using clamp because the Slide Bar tutorial that I found uses it. I think it's the best way of keeping the Slider Button inside the Slider Line, you will understand if you see the .capx.

    A simple example:

    https://www.dropbox.com/s/bt7rc1ydxzlg6 ... .capx?dl=0

    Note that the values change when the popup moves, because the buttons do not stay in their position inside the line... I tried pinning, but It don't seems to work <img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused">

  • Once I put together two different projects. Ashley explains how here:

  • Since the Slider Bar object has a very basic and non-customizable look, I made one myself, with two sprites: the "line" (slid_line), and the "button" (slid_btn).

    My slid_line is pinned to a popup that goes in and out of the screen (with LiteTween behavior) as I press a button.

    I made the slid_btn always stay inside the slid_line using: slid_btn > Set X to > clamp(self.X,slid_line.X,slid_line.X+slid_line.Width).

    So when the popup moves, the slid_line moves too because it's pinned to the popup. The popup moves horizontally.

    Problem is that the slid_btn do not holds its position inside the slid_line when the slid_line moves with the popup...

    How could I make the Button holds its position inside the Line when the line moves? Is it possible?

    Thanks in advance!!

  • Cool, you got it!

    Thank you blackhornet , I wish you all the best! Be blessed.

    For you that may need, the formula is:

    -(MinDB-(SliderBar.Value/MaxRef)*MinDB)

  • Hey blackhornet , many thanks man!

    I'm wondering what could I use for having a scale from 0 to 100 instead of 0 to 30. Any guess?

  • I made a slide bar myself that go from 0 to 100 for controlling the volume of audio, but I see that db goes from -30 to 0... I'm shure there's a way of doing this conversion, but I'm not shure how, anyone can help?

    Thanks in advance!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Many thanks Andy!!! All fine, it was easy. I think I can find the next steps in your site and ebook.

    Be blessed : )