Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

No no no, you'd comment out the first area (we don't need batches)


and then only change the upper bound of the loop (only loop over first player)


Yes is what I've done but I don't know what is going on right now. :'(



Player 2 is in the center of the screen here so it seems to work except you should shift the view manually (e.g. add 0.25 to the x coordinate and -0.125 to the y coordinate) to compensate for the point of interest always being in the top right corner?

(2 edits)

I expressed myself badly. I would like the circle to always appear at the top right of the view and for the circle to start and end at the coordinates of objPlayer2. I don't want objPlayer2 to be in the center of the screen, I need to be able to place objPlayer2 anywhere in my project around the level. ✌🏻😎

Yes; and I'm saying that...

Is it easier to explain as bullet points?

  • the view is currently always centered around the player
  • however, you always cut out the part in the top right (= not the center)
  • therefore, you need to shift the view towards the top right, so that the region you cut out will contain the center (where the player is)

ohh I understand, and how can I shift the view towards?

Add a value between -1.0 and +1.0 to the final calculation of the "tlc_" variables (="Top Left Corner").

For the X value negative values moves the view left (so the object appears further to the right in the view) so I think that's what you want to do, for the Y value negative values moves the view up (so the objects appears further down).

I'm not sure what will look right so you might need to try different values, but I think -0.35 for the X coordinate and +0.15 for the Y coordinate will be a good starting point with the screen size you're using.

(1 edit)

By the way you don’t know how much I appreciate your support, the least we can do is give you a copy of our game when it comes out.

By any chance is there the possibility of having a sort of tool specifically for what I need to do? Obviously there is no problem with paying, it is something that we particularly like.

The game will go in full screen 9:16 so we have to calculate event this thing just in case.