Search found 58 matches

by dizzykiwi3
Fri Feb 06, 2015 6:47 pm
Forum: General
Topic: Overriding setPitch
Replies: 3
Views: 1774

Re: Overriding setPitch

I was thinking about doing that, it'd just save me some time if I could override it. I'm also a bit unfamiliar with using the color and self parameters in lua functions so I wanted to try it out is this syntax close to correct? It isn't working but I think it's close? origsetPitch = setPitch functio...
by dizzykiwi3
Fri Feb 06, 2015 6:37 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 7174

A very quick question about Lua and variable reassignment

This may be a very simple question, but I'm just curious

say I have a function setit

Code: Select all

function setit(x)
x = 5 end
if I define a variable bob to be 10 and pass it through setit, bob will still be equal to 10. Why is this the case?
by dizzykiwi3
Fri Feb 06, 2015 5:38 pm
Forum: General
Topic: Overriding setPitch
Replies: 3
Views: 1774

Overriding setPitch

This probably has a simple solution but I'm a bit unfamiliar with Lua How would I go about overriding the setPitch function so that I can have it link to a speed value so that it ramps down during slow-motion moments The way I'm currently trying to do it is rampspeed = .1 origsetPitch = Source:setPi...
by dizzykiwi3
Sun Jan 11, 2015 5:01 pm
Forum: General
Topic: Rumble not working?
Replies: 4
Views: 2300

Re: Rumble not working?

IT'S ALIIIIIIIIIVVVVVVEEEEEE!!!!!!
for the 360 controller at least

Thanks so much!! I was replaying bioshock and was just blown away by how atmospheric as simple an input as rumble was.
by dizzykiwi3
Sun Jan 11, 2015 3:25 pm
Forum: General
Topic: Rumble not working?
Replies: 4
Views: 2300

Re: Rumble not working?

Xbox360 with tattiebogle and PS3 with bluetooth
by dizzykiwi3
Sun Jan 11, 2015 8:02 am
Forum: General
Topic: Rumble not working?
Replies: 4
Views: 2300

Rumble not working?

I've tried looking it up, but I haven't found any file that gets my gamepads to rumble. I know they work, bioshock shakes them thoroughly, and I get true for isVibrationSupported. I'm currently working on a macbook air if that info offers anything.

Is this a bug or am I just missing something?
by dizzykiwi3
Tue Dec 09, 2014 8:39 am
Forum: General
Topic: My attempt at Hit Detection... is it Efficient?
Replies: 6
Views: 3109

Re: My attempt at Hit Detection... is it Efficient?

The easiest approach is: 1. move shape A based on its velocity 2. find all other shapes that intersect with shape A 3. adjust shape A's position so that it's no longer intersecting with these shapes Doesn't that still require checking through the same number of elements (each shape) every update? O...
by dizzykiwi3
Tue Dec 09, 2014 1:06 am
Forum: General
Topic: My attempt at Hit Detection... is it Efficient?
Replies: 6
Views: 3109

My attempt at Hit Detection... is it Efficient?

So I've been messing around with love for about a year now and I'm loving it! I use the forums all the time but this is my first post. Anyway, I was playing around with methods of hit detection, and my current model goes something like this- Because, if a person is moving at say 100 pixels per frame...