# Lathien

Member Since 08 Jul 2008
Offline Last Active Jul 20 2012 07:51 AM

### Rotating and Stretching a Sprite

02 September 2011 - 12:07 PM

Say I have a sprite with one rectangular subimage. I want to draw this sprite from x1,y1 to x2,y2. But, x2,y2 moves, so I would also like to rotate and stretch it to always meet x2,y2.

Any way I can do this?

Thanks,
- Lathien

### Movement Boundary

27 August 2011 - 01:47 PM

Taking a new tact on my previous topic, is there a way to make an object stay within a certain distance from a point?
I was thinking something along the lines of distance_to_point() but whatever I put after that happens forever once I hit the boundary.

All I want is for an object not to be able to move outside a circular boundary and if it intersects the boundary, it just stops moving until it heads back towards the middle from a key press.

- Lathien

### Collision_Circle not filled

26 August 2011 - 11:15 PM

I was looking through the manual at the collision checking functions and at collision_circle in particular and what I found is that there is no argument in those functions to toggle whether the collision shape is filled.
What I would like to do is make a circle line around an object and if it collides with that circle from the inside then it stops moving. If I do that as is, it won't move at all because the object starts inside the circle.

Thoughts?

- Lathien

### Drawing Sprites in a Circle

26 August 2011 - 12:53 PM

Hi,

At the moment I am trying to draw 8 sprites (or, technically subimages) in an even circle around the point (x,y). So far I have them drawn in a square with this code:
```draw_sprite(sprite1,0,x-100,y-100)
draw_sprite(sprite1,1,x,y-100)
draw_sprite(sprite1,2,x+100,y-100)
draw_sprite(sprite1,3,x+100,y)
draw_sprite(sprite1,4,x+100,y+100)
draw_sprite(sprite1,5,x,y+100)
draw_sprite(sprite1,6,x-100,y+100)
draw_sprite(sprite1,7,x-100,y)```
And that square revolves around (x,y). But I can't think how I would go about making them draw in an exact circle with 100px radius.
Any thoughts?

Thanks,
- Lathien

### Blend Modes

14 August 2011 - 10:22 PM

Okay so, basically what I'm trying to do is cover the entire screen in a semi-transparent color. I found blend modes in the manual but I have no idea how to use them and nothing seems to be happening.
Here's the code I have:
```draw_set_blend_mode(bm_add)
draw_clear_alpha(c_green,0)
draw_set_blend_mode(bm_normal)```
But all it does is show a flat green. I know it's probably a simple answer but I have no idea how these things work. Can anyone tell me
1.Why this didn't work
and 2. How to have a semi-transparent color across the screen?

Thanks,
- Lathien