Search found 33 matches

by LaserGuns
Thu Jul 19, 2012 12:21 am
Forum: Support and Development
Topic: Collision detection
Replies: 10
Views: 5310

Re: Collision detection

Nixola wrote:
LaserGuns wrote:Why doesn't your avatar say "obey"? Banned from forums. lol
Why don't you have an avatar that says "obey"? ;)
Uh... well... SHUT UP lol
by LaserGuns
Thu Jul 19, 2012 12:18 am
Forum: Support and Development
Topic: "attempted to index field '?' (a nil value)"
Replies: 3
Views: 2546

"attempted to index field '?' (a nil value)"

Hey, it's laserguns, back with another problem with my game. If you read my last post, you would know that in my game (as of right now) it determines which block is selected by the X position of the white selection box on the hot bar. This means that the "ID"s of the tiles are random numbe...
by LaserGuns
Wed Jul 18, 2012 11:20 pm
Forum: Support and Development
Topic: Collision detection
Replies: 10
Views: 5310

Re: Collision detection

Kasperelo wrote:What about:

Code: Select all

if player.x >= wall.x - player.sprite:getWidht() then
    player.x = wall.x - player.sprite:getWidht()
end

That does work for me.
Why doesn't your avatar say "obey"? Banned from forums. lol
by LaserGuns
Wed Jul 18, 2012 7:00 pm
Forum: Support and Development
Topic: How do I draw tiles with this tile system?
Replies: 3
Views: 1436

Re: How do I draw tiles with this tile system?

From the looks of it, yes, it uses the x coordinate of the selection rectangle to determine which block to draw. I think this is a pretty terrible idea, and you should keep the coordinate of the hud separate from your tile id. What if you wanted to place your hud at a different position? You would ...
by LaserGuns
Wed Jul 18, 2012 8:33 am
Forum: Support and Development
Topic: How do I draw tiles with this tile system?
Replies: 3
Views: 1436

How do I draw tiles with this tile system?

This post is kinda hard to understand, so I've formatted it with bolds and italics to make it as readable as possible. :) I'm using a tile system coded by veenthree and middlerun, and I've added some stuff to it, but in order to add more major features I need to know this: How do you draw a tile at...
by LaserGuns
Wed Jul 18, 2012 3:43 am
Forum: Support and Development
Topic: How could I make a *simple* particle system?
Replies: 3
Views: 1513

Re: How could I make a *simple* particle system?

I had a go off it...then remembered how much of a pain in the ass particles are.. this might set you in the right direction though. Each time you click, all the particles move to where the mouse position is - which looks a little odd but it's a start.. I change your global x,y values to mx,my as th...
by LaserGuns
Tue Jul 17, 2012 8:33 pm
Forum: Support and Development
Topic: How could I make a *simple* particle system?
Replies: 3
Views: 1513

How could I make a *simple* particle system?

How could I make it so when I click, the cursor emits a short burst of particles? I already have an image I want to use for the particles. The image I want to use is "img/particles/breakblock.png" and it's a 5x5 little image of a white circle with a black outline. :D The wiki isn't helping...
by LaserGuns
Mon Jul 16, 2012 10:42 pm
Forum: General
Topic: Stonerealm POC
Replies: 5
Views: 2942

Re: Stonerealm POC

It's really nice to see that you're trying to do some original art. One thing you need to clean up is the feet and arm movement. Use something like this as refrence: http://www.angryanimator.com/tut/pic/002_walkcycle/wlk01.gif In your game.exe, you've inadvertently left "oldstonerealm.zip"...
by LaserGuns
Mon Jul 16, 2012 10:41 pm
Forum: General
Topic: Stonerealm POC
Replies: 5
Views: 2942

Re: Stonerealm POC

If you don't mind, let me leave you some feedback. :o: First off, good job for a starting project :neko: Second off, I STRONGLY SUGGEST a Tilemap system do-over! :( If I was that guy inside the game, I'd be thinking "How the heck?" when I was flying while jumping but when I hit the ground...
by LaserGuns
Mon Jul 16, 2012 5:58 am
Forum: General
Topic: Stonerealm POC
Replies: 5
Views: 2942

Stonerealm POC

I've been working on a game called "Stonerealm" for the past month or so. It's my first project, actually, and I'm in the process of rewriting the landscape. I decided to post this "proof of concept" here, because why not :) Please don't give me advice on how I can improve the ti...