wrap issue

0 favourites
  • I hope I can explain what I mean <img src="smileys/smiley9.gif" border="0" align="middle" />

    I observe a strange issue. I have 3 clouds, they are moving and should wrap at the end of the layout. Actually it works fine.

    until a while , then it do stop working. I mean during the author time. I have not changed at these events and should also work, but wrap behaviors do not not work more. When I created my clouds new then it works again for a while.   <img src="smileys/smiley5.gif" border="0" align="middle" />

    <img src="http://mjmedia.de/wrap.png%20" border="0" />

  • http://dl.dropbox.com/u/36472942/construct/forumhelp/sprite-wrap-moveforward.capx

    Works for me.

    Probably you're doing something strange somewhere with your clouds.

    Also instead of setting to a low float variable (0.1 px) you should rather try a formula containing dt.

    Try "dt * 6" or another value.

  • With dt the same issue. What I mean, it work for me too, but after few times not more.

    strange too, now wrap one cloud , but the another not , although all have the same event and so.

    Probably you're doing something strange somewhere with your clouds.

    these are normal png files

    very strange for me <img src="smileys/smiley29.gif" border="0" align="middle" />

  • Post your capx.

    In my example you can let clouds go on forever and they always wrap.

  • Yes I see your exemple ,and I think it not different as my

    anyway here is my project

    Before that was all working. Now is only one cloud working I do not understand why not more all clouds do wrap.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I used clouds in my last demo game posted on these forums "Bomber", and all i did was use the bullet behaiour on them and set them at low speeds. And added Wrap and they seem to work fine.

  • Whether bullet dt or move forward, my clouds do not wrap more after some time later.

    I have not idea why .

  • This copy of your capx works OK. I just changed the z-order.

  • Here a video so you can see only cloud No2 works . I do not understand why <img src="smileys/smiley5.gif" border="0" align="middle">


  • vidi

    It is bizarre. I re-amended your .capx and added some code. It showed the clouds X-position getting stuck just off screen, implying perhaps a bug somewhere, maybe in the Wrap behavior.

    I moved the Origin to the far left, and added boundary check and it appears to work for me now.

  • I moved the Origin to the far left,

    hooray, this seems to solve the problem Thank you zenox98!!!<img src="smileys/smiley42.gif" border="0" align="middle" />

    <img src="smileys/smiley9.gif" border="0" align="middle" /> maybe stupid question, but I do not know, where I can find boundary check?

  • I'm not certain why it didn't work. It should, but it seems to me that Wrap has a problem dealing with more than one instance when they leave the layout. Just guessing :/

    My hack involved setting the Origin to the far left, then checking when the cloud reached the far right, and resetting it's x-position to '0-cloud.width' so it starts again. That's all I meant by boundary check. The boundary at the far right of the screen.

    I don't think this is a good enough solution, but at least it works :)

  • ...That's all I meant by boundary check. Ah, I understand

    Thank you again ! <img src="smileys/smiley1.gif" border="0" align="middle" />

    I don't think this is a good enough solution, but at least it works :)

    I thought I'm stupid <img src="smileys/smiley36.gif" border="0" align="middle" />

  • I'll move the subject to "bugs" even though you have a workaround, to be sure ashley takes a look at it when he comes back.

    It is indeed strange that clouds stop this way after a while.

    Maybe an uncommon combination of events or something.

    Also nice art on the example, I'm curious to see the game a little more advanced (with actual gameplay).

  • vidi

    Forgot to mention, the way it works now, there is no need for the Wrap behavior.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)