Texture, States, warps and allot more.

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
boythiel15
Prole
Posts: 1
Joined: Tue Feb 26, 2013 12:58 am

Texture, States, warps and allot more.

Post by boythiel15 »

This is for a school project that I need to do if anyone can help that would be great.
**I am a noob**
I am using some... I mean allot of Goature's code and states system
I have a few problems.
1. I want to add a texture to my player (I'm talking about his platformer tutorials)
2. I want to make it when my player gets to a certain part of the map it would warp him to the next one.
3. I need a back function in the states system.
** I know I'm asking allot but stick with me **
4. I need enemies and a boss battle.
5. A points system.
;)
Attachments
My game.love
This is my game so far
(154.48 KiB) Downloaded 103 times
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: Texture, States, warps and allot more.

Post by micha »

My general suggestion, as I read your questions: Try reading more tutorials and practice programming a bit. Most things can be implemented and are not very difficult.
Also, have a look in the wiki, there are general tutorials: https://www.love2d.org/wiki/Main_Page

That said, here is an answer to problem number 1:
In the draw code substitute this:

Code: Select all

love.graphics.rectangle("fill", player.x - player.w/2, player.y - player.h/2, player.w, player.h)
by this:

Code: Select all

love.graphics.draw( image, player.x, player.y, 0, 1, 1, player.w/2, player.h/2 )
Additionally you have to define the image you want to draw. For that, please read this wiki page and look at the examples:
https://www.love2d.org/wiki/love.graphics.draw
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests