Making a tile-based RPG.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
baconhawka7x
Party member
Posts: 491
Joined: Mon Nov 21, 2011 7:05 am
Location: Oregon, USA
Contact:

Making a tile-based RPG.

Post by baconhawka7x »

I am making a tile-based RPG but there are a few things i have been stuck on.

I make my tilemaps with...

Code: Select all

for rowIndex=1, #town do
    local row = town[rowIndex]
    for columnIndex=1, #row do
      local number = row[columnIndex]
      love.graphics.draw(tile[number], (columnIndex-1)*TileW, (rowIndex-1)*TileH)
    end
  end
and i was wondering how to stop the player from moving through blocks.

Also I was wondering how to stop the player from infinitely jumping?

This is how i make the player jump

Code: Select all

if love.keyboard.isDown("w") then
        steve.y = steve.y - steve.jump * dt
        timer = timer + dt
        end
if timer > 1.5 then
steve.y = steve.y + steve.jump * dt
end
Also I was wondering how i would make armor?
Should i just make a bunch of seperate pictures of the same guy wearing different armor?
or would i make seperate pictures of armor and somehow paste them onto the character? If so, how would I do that.
and the same goes for custom weapons.

One last question. How do i control the camera? i dont even have a clue where to start, so any basic information would be nice:)


all and any help is appreciated greatly:)
Last edited by baconhawka7x on Sat Dec 17, 2011 7:55 pm, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests