Search found 4 matches
- Mon Dec 16, 2024 3:14 pm
- Forum: Support and Development
- Topic: scaling sprite from center
- Replies: 2
- Views: 849
Re: scaling sprite from center
Hi, yes, from the center or any other location. The easiest way to do that is by using the "origin offset" coordinates, it's the ox , oy parameters found in either the love.graphics.draw() function where you manually set them, or when creating/modifying a Transform object (see the docs fo...
- Sat Dec 14, 2024 9:28 pm
- Forum: Support and Development
- Topic: scaling sprite from center
- Replies: 2
- Views: 849
scaling sprite from center
hi, im just messing around and trying things out since im new and i was wondering if it's possible to scale a sprite from it's center point? as you can see the rest works well but i couldn't figure that part out...thanks!
- Thu Dec 12, 2024 6:59 pm
- Forum: Support and Development
- Topic: dragable delay
- Replies: 2
- Views: 854
Re: dragable delay
Well, for starters you don't need to disable rect.indrag when the mouse goes outside the rectangle. That way, the only way for a drag the user has started to end is when they let go of the mouse button. If you're making a game where the drag can be cancelled by the box being prevented from reaching...
- Tue Dec 10, 2024 10:56 pm
- Forum: Support and Development
- Topic: dragable delay
- Replies: 2
- Views: 854
dragable delay
hey, complete beginer in coding and game making here. i managed to make a dragable rectange but it's pretty delayed, this results in the mouse going out of the rectange wich makes the mouse stop moving it. have any tips? thanks! also the code is pretty messy since im adding other thing as well, sorr...