Search found 61 matches

by Xoria
Sun Mar 07, 2010 2:04 am
Forum: Support and Development
Topic: Particles don't get affected by the cam??
Replies: 1
Views: 1180

Particles don't get affected by the cam??

--In the general statements: camera = {} -- In update. camera.x = love.mouse.getX()/2*-1 camera.y = love.mouse.getY()/2*-1 How do I make the particles in the particle demo actually get affected by the mouse movement/cam? In my other code, I have an object I made that's drawn like this: love.graphic...
by Xoria
Fri Mar 05, 2010 3:18 am
Forum: Support and Development
Topic: How do I round?
Replies: 11
Views: 7527

Re: How do I round?

Still won't work. I did exacly that. And put everything in the right place. It may have something to do with the dot. I made another var called EarthAge(no dot), and I made EarthAge = planetEarth. age, and DIDNT work. Why? Edit: Oddly, though, a simple variable with no dot works. (When not equal to ...
by Xoria
Thu Mar 04, 2010 5:00 pm
Forum: Support and Development
Topic: How do I round?
Replies: 11
Views: 7527

Re: How do I round?

It won't work for some reason.

Code: Select all

function math.round(planetEarth.age) --you should really give it another name though
    return math.floor(planetEarth.age+0.5)
end
It says 'expected ) before .'
by Xoria
Thu Mar 04, 2010 1:14 pm
Forum: Support and Development
Topic: How do I do these cool things?
Replies: 30
Views: 6732

How do I do these cool things?

1. How do I change the size and rotation of the camera? (In order to zoom in/zoom out, & rotate). 2. Make variable increase like earth's population? Like, it increases by 2, next , increases by 4, and then increases by 8? But I also want it to increase smoothly. (It shouldn't just flash 4, then ...
by Xoria
Tue Mar 02, 2010 1:14 pm
Forum: Support and Development
Topic: How do I round?
Replies: 11
Views: 7527

How do I round?

Code: Select all

---At  the top
myvar = 0


--Somewhere in love.update
myvar = myvar + dt
love.graphics.print(myvar, 100, 50)
That line in love.update prints an ever increasing var, but there are tons of decimals. How do I kill them, and make it always show only the integer?
by Xoria
Sun Feb 28, 2010 8:27 pm
Forum: Support and Development
Topic: Is this efficient? 3 q's. (+MORE)
Replies: 11
Views: 4131

Re: Is this efficient? 3 q's.

New questions. I tried to make a table version of what I've done so far, and I got new q's.

Where and how do I implement the time thing in this new code? Did I do it right?

Finally, how can I scale the image?

Thanks. I commend this forum. Very helpful and patient.
by Xoria
Sun Feb 28, 2010 12:59 am
Forum: Support and Development
Topic: Is this efficient? 3 q's. (+MORE)
Replies: 11
Views: 4131

Re: Is this efficient? 3 q's.

It says speed is a nil value.

Edit

By the way, I;ll start over with a basic table. It's a better idea.

Oh, and how do I make it so that it tracks every ADDITIONAL second that passes after the thing has been spawned,?
by Xoria
Sat Feb 27, 2010 10:15 pm
Forum: Support and Development
Topic: Is this efficient? 3 q's. (+MORE)
Replies: 11
Views: 4131

Re: Is this efficient? 3 q's.

Thanks & My bad. I'll make it a .love next time. Anyways, I made an image infront of the phys object because later on, I want to execute stuff when particles touch the physics balls. Think that's a bit unneeded? Could be easier if one just attaches an image to a table, if yes, I wasted days of m...
by Xoria
Sat Feb 27, 2010 8:00 pm
Forum: Support and Development
Topic: Is this efficient? 3 q's. (+MORE)
Replies: 11
Views: 4131

Is this efficient? 3 q's. (+MORE)

1. How do I make it so that after you draw the thing, a timer will start?

2. How can I make the image alone rotate smoothly?

3. Also how do you not have to only hide and display this object, but I remove and add the thing? It's unclear, but the code is here...

TIA :megagrin:
by Xoria
Mon Feb 22, 2010 11:43 pm
Forum: Support and Development
Topic: How do I attach a circle physics object to a particle?
Replies: 21
Views: 13278

Re: How do I attach a circle physics object to a particle?

Good, but rather than sprite stuff, you showed me image stuff. One last thing. So there isn't a way to seriously manipulate images AND use physics? If so, that's a bit dull. :|