Search found 3 matches

by stouty
Sat Apr 30, 2016 11:36 am
Forum: Support and Development
Topic: Implementing collisions
Replies: 2
Views: 2227

Implementing collisions

How would I go about checking collisions for the player with an object that is declared in main or some other file? On top of that, how would I go about creating a parent class like "collidable" to handle all the objects the player could collide with. To clarify, I know the formula for col...
by stouty
Sat Apr 23, 2016 3:30 pm
Forum: Support and Development
Topic: Object not in table despite being inserted
Replies: 6
Views: 2686

Re: Object not in table despite being inserted

Thanks, everyone, for the help. That was certainly an easy fix that I should've seen. Cannonball.new = function(x,y,d,s) local c = { x = x, y = y, dir = d, speed = s, rot = 0, destroy = false } c.image = maid64.newImage("cannonball.png") c.image:setFilter("nearest", "nearest...
by stouty
Sat Apr 23, 2016 4:42 am
Forum: Support and Development
Topic: Object not in table despite being inserted
Replies: 6
Views: 2686

Object not in table despite being inserted

Hello, So I am trying to insert a "cannonball" object into a "cannonballs" table, yet despite being created and inserted into the table, the object doesn't seem to be in the table. This code is inside "Player.lua": function self.keypressed(key) if (key == "space&qu...