Search found 113 matches

by Vimm
Sat Feb 18, 2017 2:28 am
Forum: Support and Development
Topic: Creating an "endless runner" that isnt random?
Replies: 3
Views: 747

Creating an "endless runner" that isnt random?

I couldnt think of a short way to describe what i mean. Basically I'm making a game like an endless runner, except it isnt endless. I want to have levels that you can complete, but it still plays like an endless runner. What I'm trying to do is make each level have a planned x,y coor for each platfo...
by Vimm
Thu Dec 15, 2016 9:21 am
Forum: Support and Development
Topic: Why is this variable nil? :/
Replies: 10
Views: 1898

Re: Why is this variable nil? :/

love.main should be love.load. HOW THE *************************************** DID I MISS THAT ARE YOU KIDDING thank you for being my eyes can i please have a pair of glasses or new eyes all together possibly a functioning brain if they're in stock i hate myself This is the best way of learning! :D...
by Vimm
Thu Dec 15, 2016 8:07 am
Forum: Support and Development
Topic: Why is this variable nil? :/
Replies: 10
Views: 1898

Re: Why is this variable nil? :/

Nixola wrote:love.main should be love.load.
HOW THE *************************************** DID I MISS THAT
ARE YOU KIDDING
thank you for being my eyes
can i please have a pair of glasses
or new eyes all together
possibly a functioning brain if they're in stock
i hate myself
by Vimm
Thu Dec 15, 2016 7:02 am
Forum: Support and Development
Topic: Why is this variable nil? :/
Replies: 10
Views: 1898

Re: Why is this variable nil? :/

The problem isn't in that code. It's somewhere else in the project. Most likely you're trying to update the player before it's been loaded. But we can't tell without more information. the only other file in the project is main: require("player") function love.main() LOAD_PLAYER(500, 200) end functi...
by Vimm
Thu Dec 15, 2016 5:32 am
Forum: Support and Development
Topic: Why is this variable nil? :/
Replies: 10
Views: 1898

Why is this variable nil? :/

I'm trying to make a player move around, I'm doing it the same way i always do, yet for some reason now, xVel is nil :/ can someone find an issue im missing? player = {} function player:load(x,y) self.width = 128 self.height = 128 self.speed = 500 self.xVel = 0 self.yVel = 0 self.acceleration = 1500...
by Vimm
Mon Dec 05, 2016 6:40 pm
Forum: Support and Development
Topic: How do I use stencil?
Replies: 9
Views: 1420

Re: How do I use stencil?

pgimeno wrote:Looks like it should be working, yes (apart from the fact that you don't draw the map to the screen, only to the stencil, but that shouldn't prevent the blood from being drawn). Hard to help without a test case, sorry.
yeah well the map is invisible in game anyway so that part should matter haha.
by Vimm
Mon Dec 05, 2016 6:11 pm
Forum: Support and Development
Topic: How do I use stencil?
Replies: 9
Views: 1420

Re: How do I use stencil?

After preparing the stencil by drawing on it, you have to activate it. Read my explanation again. I feel like this should be working, but the DRAW_BLOOD isnt being called at all, or at least not drawn. local function my_stencil_function() DRAW_MAP_LOADER() end function love.draw() camera:set() love...
by Vimm
Fri Dec 02, 2016 5:53 am
Forum: Support and Development
Topic: How do I use stencil?
Replies: 9
Views: 1420

Re: How do I use stencil?

Can't say for sure without looking at your full code, but it seems so. If you want the map to act as a mask for your spawning objects, you'll have to draw the map to the mask (=the stencil). Edit: Maybe you can just do: love.graphics.stencil(DRAW_MAP_LOADER) (Note the parentheses are missing, becau...
by Vimm
Fri Dec 02, 2016 12:42 am
Forum: Support and Development
Topic: How do I use stencil?
Replies: 9
Views: 1420

Re: How do I use stencil?

Can't say for sure without looking at your full code, but it seems so. If you want the map to act as a mask for your spawning objects, you'll have to draw the map to the mask (=the stencil). Edit: Maybe you can just do: love.graphics.stencil(DRAW_MAP_LOADER) (Note the parentheses are missing, becau...
by Vimm
Thu Dec 01, 2016 6:59 pm
Forum: Support and Development
Topic: How do I use stencil?
Replies: 9
Views: 1420

Re: How do I use stencil?

Only you know the organization of your game, but the functionality is as follows. You can see the stencil as an invisible mask, similar to an alpha layer, but only yes/no. When the stencil is active, a pixel is either drawn or not drawn, even if the values of the mask can be in 0-255; there's no op...