Search found 46 matches

by BluBillz
Sun Mar 08, 2015 10:39 pm
Forum: Support and Development
Topic: NPC angle to player problem
Replies: 8
Views: 2503

Re: NPC angle to player problem

ivan wrote:Here you go, the fixed version.

npcFix
Same as your version but fixed

npcFix2
Enemies turn gradually towards player
Wow thankyou soo much seriously been stuck with this for about a week :awesome:
by BluBillz
Sat Mar 07, 2015 8:32 pm
Forum: Support and Development
Topic: NPC angle to player problem
Replies: 8
Views: 2503

Re: NPC angle to player problem

I tried this but they still don't even look at the player..they do the same thing like before..nothing new.....what would be the case to this? Note how atan2 works: atan2(y, x) Where the first component is the y value. Also note that the returned angle is in radians and increases in a counter-clock...
by BluBillz
Sat Mar 07, 2015 8:30 pm
Forum: Support and Development
Topic: Image Collision
Replies: 11
Views: 8429

Re: Image Collision

How would I be able to use bounding box? I did research but I am clueless. I am a newbie when it comes to this kind of stuff. Well what bounding box is doing is getting the x and y, width and height of 2 separate "images" for your case. So you would need to fill in the parameters. functio...
by BluBillz
Sat Mar 07, 2015 7:12 pm
Forum: Support and Development
Topic: Image Collision
Replies: 11
Views: 8429

Re: Image Collision

check out BoudingBox.lua here https://love2d.org/wiki/BoundingBox.lua

then with that function use it with an IF statement.

it would be something kinda like..

Code: Select all

if checkCollision(collisionStuff) then
--this is where you would make everything else when they are touching
end
by BluBillz
Sat Mar 07, 2015 1:22 am
Forum: Support and Development
Topic: Strings to numbers
Replies: 3
Views: 2453

Re: Strings to numbers

Try adding # before the variable. If it was in a table i believe it should work out like that.
by BluBillz
Sat Mar 07, 2015 1:12 am
Forum: General
Topic: Free Library Names Megathread!
Replies: 34
Views: 16942

Re: Free Library Names Megathread!

.....To me this post really really felt like you simply made this thread to show off your "dong2lib"....Because besides that this is really pointless...or atleast add this somewhere else on the forums but here.

So ya i totally agree with Azhukar.
by BluBillz
Sat Mar 07, 2015 12:57 am
Forum: Support and Development
Topic: How to Embed Into HTML
Replies: 1
Views: 3834

Re: How to Embed Into HTML

You should check this out viewtopic.php?t=8487
by BluBillz
Fri Mar 06, 2015 10:59 pm
Forum: Support and Development
Topic: NPC angle to player problem
Replies: 8
Views: 2503

Re: NPC angle to player problem

davisdude wrote:You can get the angle from the enemy to the player like so:

Code: Select all

angle = math.atan2( enemy.y - player.y, enemy.x - player.x )
I tried this but they still don't even look at the player..they do the same thing like before..nothing new.....what would be the case to this?
by BluBillz
Fri Mar 06, 2015 6:08 pm
Forum: Support and Development
Topic: Love2D toggle console activity
Replies: 4
Views: 2104

Re: Love2D toggle console activity

BlueBillz: that won't work because you just change some random value, but love2D doesn't communicate that to SDL (or actually, the CPP side just doesn't care), which does all the window managing. That is true for all of love.conf, if you want to change something, you'll need to go through the api. ...
by BluBillz
Fri Mar 06, 2015 3:35 pm
Forum: Support and Development
Topic: Fullscreen in Linux issue
Replies: 5
Views: 2898

Re: Fullscreen in Linux issue

one way i learned how to make fullscreen scale properly and look fancy how you want it is with a function like this.. function checkResolution() if fullscreen == false then love.graphics.setMode(0, 0, false, v, f) love.graphics.setMode(love.graphics.getWidth() - 200,love.graphics.getHeight() - 200, ...