Search found 7 matches

by CharWirtanen
Mon Jul 20, 2009 11:32 pm
Forum: Support and Development
Topic: Vector graphics and colors.
Replies: 9
Views: 3937

Re: Vector graphics and colors.

can someone please tell me why this does not work properly, im trying to fill on part of the tail in with a color but it goes invisible. function draw() love.graphics.setLineStyle(love.line_smooth); --fish love.graphics.setColor(255,215,0); love.graphics.circle(love.draw_fill,xf,yf,R2); love.graphi...
by CharWirtanen
Mon Jul 20, 2009 11:29 pm
Forum: Support and Development
Topic: Vector graphics and colors.
Replies: 9
Views: 3937

Re: Vector graphics and colors.

Just realized my last example didnt work at all, so I went ahead and actually fired up love and made this example for you. Left-click anywhere on the screen to add a fish. -- Fish --------------------------------- ----------------------------------------- Fish = Fish or {} -- Declare fish class Fish...
by CharWirtanen
Mon Jul 20, 2009 10:17 pm
Forum: Support and Development
Topic: Vector graphics and colors.
Replies: 9
Views: 3937

Re: Vector graphics and colors.

Edit: -- See next reply with fix.
by CharWirtanen
Mon Jul 20, 2009 7:57 pm
Forum: Support and Development
Topic: Nonphysical translated movement
Replies: 5
Views: 1676

Re: Nonphysical translated movement

There is no function to "move" a sprite. LÖVE does not remember where sprites are, you have to draw them yourself where you want at each frame. Now to find the right functions to move a sprite smoothly from one point to another, many possibilities exist. A very good introduction is here: http://sol...
by CharWirtanen
Mon Jul 20, 2009 2:03 am
Forum: Support and Development
Topic: Drawing sprites with alpha?
Replies: 12
Views: 4420

Re: Drawing sprites with alpha?

bartbes wrote:Are you sure love.color_modulate is on? Have to ask.
D'oh. That was it for me.
by CharWirtanen
Mon Jul 20, 2009 2:02 am
Forum: Support and Development
Topic: Drawing sprites with alpha?
Replies: 12
Views: 4420

Re: Drawing sprites with alpha?

I can't figure out how to make images transparent. For some reason it seems to only be affecting text. I'm sorry but this is implemented very strangely. The opacity value should be part of the draw function like angle and scale are. The color stuff only seems to affect text. Which is fine, if I wan...
by CharWirtanen
Mon Jul 20, 2009 1:33 am
Forum: Support and Development
Topic: Nonphysical translated movement
Replies: 5
Views: 1676

Nonphysical translated movement

I notice there aren't any functions included for basic effects like translating a sprite to a position over a certain amount of time, does anyone have a tutorial or example on how to do this? I understand the concept, but the math is messing me up a bit and I can't figure out how to implement such a...