Hi all, im new to Love2D and I was wondering if someone could help me out in making my character "jump"...
Is it best to just code it from scratch or utilize the physics functions to assist me. I have been studying Lua for 2 weeks now..
Im mainly an artist, I want to learn Lua to make my own game in Leadwerks. But I am using Love2D to help me better understand programming since its simple to understand.
www.TillmansArt.com
How to make character jump.
-
- Prole
- Posts: 14
- Joined: Sun Nov 22, 2009 12:42 am
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How to make character jump.
I have made a small platformer that might serve as "inspiration" for tackling certain problems: Jump Game. It uses a self-made physics/gravity system, and it has features for jumping, double jumping, little smilies floating around your head and more.
Help us help you: attach a .love.
-
- Prole
- Posts: 14
- Joined: Sun Nov 22, 2009 12:42 am
Re: How to make character jump.
very nice bro, thanks for the file, is there a way to look at the source code for this file you have given me, can I open it up in LuaEdit or something? Im still kinda newbish to Love so bare with me
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How to make character jump.
No problem, just rename the .love into a .zip, and unzip it.
Help us help you: attach a .love.
-
- Prole
- Posts: 14
- Joined: Sun Nov 22, 2009 12:42 am
Re: How to make character jump.
Dude that looks hard, I am actually wrapping my head around using tables and for loops as of now.
I notice you said "self-made" physics and gravity system....can I achieve the same effects using the functions within love2d's physics module? Or do I have to code something similiar to this in order to achieve the same effects?
Thanks for all your help btw bro..
I notice you said "self-made" physics and gravity system....can I achieve the same effects using the functions within love2d's physics module? Or do I have to code something similiar to this in order to achieve the same effects?
Thanks for all your help btw bro..
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How to make character jump.
The love.physics module (which basically is Box2D, a popular physics engine) is very advanced, but I'd say rather difficult to use. Writing your own simple physics engine is going to be much easier (especially at this stage). To write a simple physics engine, you need nothing more than high school level knowledge of Math and Physics. I think the biggest obstacle at this time for you will be understanding how code works... you need to form a mental model of how it all fits together, much like you need to have the art you are drawing/composing/etc in your head.Kevin Tillman wrote:Dude that looks hard, I am actually wrapping my head around using tables and for loops as of now.
I notice you said "self-made" physics and gravity system....can I achieve the same effects using the functions within love2d's physics module? Or do I have to code something similiar to this in order to achieve the same effects?
Without such a model, you can do lots of neat stuff with coding, but you won't be able to solve problems. And you need to solve problems to make a game. Lots of them. But I think you are getting there already. Lua is a great way to learn programming, IMHO.
Glad to help.Kevin Tillman wrote:Thanks for all your help btw bro..
Help us help you: attach a .love.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: How to make character jump.
Ah, you messed it up, never say thanks until AFTER you're done, now he won't have anything to help you for (obviously a joke, we aren't that bad)Kevin Tillman wrote:Thanks for all your help btw bro..
Who is online
Users browsing this forum: No registered users and 2 guests