How to make a hitbox?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

How to make a hitbox?

Post by Kasperelo »

Hi!

NOTE: I'm a noob that started 10 hours ago programming, so don't laugh!
MESSAGE: Can anyone PLEASE tell how to make hitboxes? I'm trying to make
a game where you control a mouse and you're getting followed by red dots that
you need to avoid. The problem is, I need to make a hitbox for the buttons on
the start-screen and the red dots / the mouse, so when they collide it says "Game
Over!"

Thx!
-Kasperelo
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: How to make a hitbox?

Post by Robin »

Could you upload a .love of what you have so far? See Game_Distribution if you don't know how that works.
Help us help you: attach a .love.
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: How to make a hitbox?

Post by Kasperelo »

Well, right now I have only made the start screen...
User avatar
Codex
Party member
Posts: 106
Joined: Tue Mar 06, 2012 6:49 am

Re: How to make a hitbox?

Post by Codex »

User avatar
NanoSpace
Prole
Posts: 7
Joined: Sat Feb 25, 2012 10:18 pm

Re: How to make a hitbox?

Post by NanoSpace »

If you still have trouble there's a guy named Goature who's making some tutorials, He made a video specifically to Hitboxes
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: How to make a hitbox?

Post by Kasperelo »

I'm watching that video right now!
I didn't quite understand the episodes where
he explained entities.lua...
User avatar
NanoSpace
Prole
Posts: 7
Joined: Sat Feb 25, 2012 10:18 pm

Re: How to make a hitbox?

Post by NanoSpace »

Kasperelo wrote:I'm watching that video right now!
I didn't quite understand the episodes where
he explained entities.lua...
I think all an entity is..is code that you would group together, for example Minecraft. If you looked at the code, you would see that there's a SkeletonEntity, ZombieEntity, SpiderEntity, etc. If you look into the entities then it has all the code that relates to Skeletons, Zombies, and Spiders. Epic way to be organized by the way. :P
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: How to make a hitbox?

Post by Kasperelo »

I mean, I didn't understand the coding/codes. He didn't explain good enough and
wnet too fast on to new functions and mathematical equations and other stuff.
User avatar
NanoSpace
Prole
Posts: 7
Joined: Sat Feb 25, 2012 10:18 pm

Re: How to make a hitbox?

Post by NanoSpace »

Example of what you didn't understand? :o
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: How to make a hitbox?

Post by Kasperelo »

Everything with the ents.randomStuff!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests