Drag and drop problem...Solved

This forum is currently in read-only mode.
From the Asset Store
320 high-quality cinematic sound effects for trailers and game scenes.
  • What am i doing wrong with this event?

    The round sprites dont seem to position correctly to the mouse?

    + Powerups: Is Dragging

    -> Powerups: Set position to (Int(MouseX/32)*32), (Int(MouseY/32)*32)

    <img src="http://dl.dropbox.com/u/22173473/fireworkspic.png" border="0">

    cap

    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
  • Um your upper cells appear to be about 48 pixels apart? So the 32px rounding doesn't quite match it?

    I guess you could do a separate rounding on drop and/or if the things overlap the rocket?

  • Um your upper cells appear to be about 48 pixels apart? So the 32px rounding doesn't quite match it?

    I guess you could do a separate rounding on drop and/or if the things overlap the rocket?

    Thanks Somebody

    God I am thick!...BUT... The sprites DONT stay 'centre mouse' while dragging, they seem to be out of sync? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Try: (ceil(MouseX/32)*32) instead of int(). Produces nice results here.

    Edit: Actually try this:

    <img src="http://i244.photobucket.com/albums/gg36/some9000/3bae18e2.png" border="0" />

    Seems to work very nicely.

  • Try: (ceil(MouseX/32)*32) instead of int(). Produces nice results here.

    Edit: Actually try this:

    <img src="http://i244.photobucket.com/albums/gg36/some9000/3bae18e2.png" border="0" />

    Seems to work very nicely.

    --------------------------------------------

    Problem solved.

    Thanks for the solution

    <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Ceil's changed for the next release. Not sure if it would break anything there tho.

  • Say what now!

    New release!

    Hell's Teeth <img src="smileys/smiley17.gif" border="0" align="middle" />

  • Ceil's changed for the NEXT RELEASE. Not sure if it would break anything there tho.

    "The reports of CC's death are greatly exaggerated"

  • Yeah, well, Rojo made that fix right after this previous release.

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