Skip to main content

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

What changes did you add more exactly? Only removing the clamp or also hardcoding the center position + adding the new adjustment factors?

Just that! Trying to hardcoding the center position seems to place the pop in view in weird places.

(1 edit) (+1)

OK, I think I get what's happening now - since you assume manual control of the view the batching system gets in the way. I fiddled around with it and got better results after the following changes:

  • comment out everything starting at the "for(var c = 0; c < voron_OBJECTS_MAX - 1; c++)" line and ending right before the "//If not in a batch, just target actual position." line
  • A little further down change the max value of the "//Compute screen positions using relative orientation" loop to 1 instead of the number of players

Now there's no batching, and the average position (used to center the main view) only takes player 1's position into account. The only drawback is that the pop-in assumes player 2 is in the center of the entire screen, but you can solve that by just pushing the view around with some constant factors based on screen size.

So you mean that I have to change the #macro that you set for the demo? 
Is not possible to draw that maybe in a draw GUI fixed on top right?

(+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?

(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.