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
How to make a hitbox?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How to make a hitbox?
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.
Re: How to make a hitbox?
Well, right now I have only made the start screen...
Re: How to make a hitbox?
You may want to try this,
https://love2d.org/wiki/BoundingBox.lua
or this tutorial
https://love2d.org/wiki/Tutorial:Gridlocked_Player
https://love2d.org/wiki/BoundingBox.lua
or this tutorial
https://love2d.org/wiki/Tutorial:Gridlocked_Player
Re: How to make a hitbox?
If you still have trouble there's a guy named Goature who's making some tutorials, He made a video specifically to Hitboxes
Re: How to make a hitbox?
I'm watching that video right now!
I didn't quite understand the episodes where
he explained entities.lua...
I didn't quite understand the episodes where
he explained entities.lua...
Re: How to make a hitbox?
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.Kasperelo wrote:I'm watching that video right now!
I didn't quite understand the episodes where
he explained entities.lua...
Re: How to make a hitbox?
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.
wnet too fast on to new functions and mathematical equations and other stuff.
Re: How to make a hitbox?
Example of what you didn't understand?
Re: How to make a hitbox?
Everything with the ents.randomStuff!
Who is online
Users browsing this forum: Semrush [Bot] and 3 guests