The Last Dalek will be a platformer game where you play as a dalek, go through the levels, and kill all the cybermen. i have some good concepts about this, but i also have a lot of questions about this. i will try to figure out most of it, but whatever i get stuck on i will ask a question here. after i finish the first level i will poast a download link here.
question one: it will be a physics game, but im wondering how i can put a picture onto a body. i know how to do the controls and everything, i just need to know how to do this and then i will be good for a while. thanks!
The Last Dalek
The Last Dalek
+1 internet to anyone that helps me! i am a lost little puppy!
Re: The Last Dalek
You can't, directly; physics and graphics are separate. You need to keep track of where the body is, and use love.graphics.draw to display the image at that point.
Re: The Last Dalek
so ill have to control both the image and the body seperately? there has to be an easier way...
+1 internet to anyone that helps me! i am a lost little puppy!
Re: The Last Dalek
Sadly, no. Unless of course you want to integrate Kikito's PASSION library, in which you create an "Actor" class which manages both a physics shape and a graphic for you, making them the same object (both the physics and graphics are optional components of the Actor).
Good bye.
Re: The Last Dalek
i might do that, unless i could just make the game all graphics. but i still would need to simulate gravity...
+1 internet to anyone that helps me! i am a lost little puppy!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: The Last Dalek
It depends on the game. Sometimes it's easier not to use love.physics and write your own code for gravity and collisions.
Help us help you: attach a .love.
- The Burrito
- Party member
- Posts: 153
- Joined: Mon Sep 21, 2009 12:14 am
- Contact:
Re: The Last Dalek
Its really surprisingly hard to make a platformer with physics managing everything. It never "feels" right because we all grew up playing Mario and the like, and expect the characters to move like Mario.(basically moving up at a constant speed, hanging in the air, then falling at a constant speed)
That being said, physics is really fun, and keeping track of the physics body's location isn't really that bad. If there's no rotation, it can be as simple as love.graphics.draw( sprite, Body:getX( ), Body:getY( ))
That being said, physics is really fun, and keeping track of the physics body's location isn't really that bad. If there's no rotation, it can be as simple as love.graphics.draw( sprite, Body:getX( ), Body:getY( ))
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: The Last Dalek
Physics is better used for puzzlers like the dozens or so on the iPhone and other portable smartphones. Like Tiki Totems, Finger Physics, Implode! Angry Birds and JellyCar.
Side scrollers are better with their own engines. There are hundreds of side-scrollers with great engines and many indie scrollers like Cave Story that prove how easy it is relatively to make an engine that works great. Hell, someone literally just ported Super Mario Bros. to the Sega Genesis using the original Assembler code.
Side scrollers are better with their own engines. There are hundreds of side-scrollers with great engines and many indie scrollers like Cave Story that prove how easy it is relatively to make an engine that works great. Hell, someone literally just ported Super Mario Bros. to the Sega Genesis using the original Assembler code.
Re: The Last Dalek
Tiki Totems rocks! Now if only there was a LOVE version of it.... Well, I've another project on my to-do!
Making your own engine is really fun.
Making your own engine is really fun.
Good bye.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: The Last Dalek
Hey, I was going to make a Tiki Totems clone.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests