Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ratmuffin

3
Posts
3
Following
A member registered Sep 15, 2021

Recent community posts

Fantastic idea! I might try some AI art in my next project to help overcome my artistic inadequacy :)

Made it in 30 launches! Was still pretty challenging even after getting all the upgrades, but certainly doable!

Cheers! I think what confused me was the conversion of the script into the 2.3+ format. I replaced argument0 and argument1 in the function declaration with x and y (as that's what you had in the @param comments) and that changed the x and y already in the script to be script variables instead of instance variables (and thus, would always result in zero for the aforementioned calculations). All good now!

Hello! Thanks for another amazing tutorial! I have a question that feels like should have a simple answer but it is not coming to me...

When declaring the initial _x _y variables, you include "(argument0 - x)" and similar. However, argument0 *is* x, so "(argument0 - x)" will always equal 0, right? Of course, this assumes the instance calling the script is the one that a collision check is being run for.

However, if a second instance calls this script in order to run a collision check on a different instance, then "x" and "argument0" in the script refer to different x values... Wouldn't that break the script? I just can't think of a use case where you would want this? Am I missing something?

Edit: I may have figured it out, it's to allow for a collision checks outside of the bounding box? Like when you want to determine if a moving object will collide given its current velocity?