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.
Texture, States, warps and allot more.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 1
- Joined: Tue Feb 26, 2013 12:58 am
Texture, States, warps and allot more.
- Attachments
-
- My game.love
- This is my game so far
- (154.48 KiB) Downloaded 103 times
Re: Texture, States, warps and allot more.
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:
by this:
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
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)
Code: Select all
love.graphics.draw( image, player.x, player.y, 0, 1, 1, player.w/2, player.h/2 )
https://www.love2d.org/wiki/love.graphics.draw
Check out my blog on gamedev
Who is online
Users browsing this forum: No registered users and 7 guests