Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Walluce

#1
@eri0o I'm sorry if I didn't express myself well. I meant to thank you. The code you shared helped immensely. With the code you shared and with @Crimson Wizard's explanation, I got my plugin to work exactly as intended. Thanks again to you both.
#2
I understand, but if I say "My plugin is doing X" then I will get replies saying:
  • AGS Already Does X - Yes, but not the way I want it.
  • Why do you want to do X? - I want to do something other games don't
  • Why don't you just use plugin Y? - Because I think I can do it better and because I want to tailor it to my game

Or someone simply steals my idea before I can finish my game (I still have a long way to go).
#3
Is there a "GetNumberOfWalkBehindsInTheRoom()" method?
#4
@eri0o - Thanks. I don't quite understand the purpose of fakescreen, since there doesn't seem to be any documentation, but I can see that it basically does what I need to do, I.T.O. creating an image per overlay and sorting them.

@Crimson Wizard - I am not quite ready to talk about my plugin in detail yet, as would like to use it in a commercial game. I was hoping I could get away with a simpler algorithm, but I that see that I won't. Thank you for explaining that it's not always Y and the proper values to use.
#5
Hi,

I am writing a plugin and as part  of what my plugin needs to do, I basically need to redraw everything on the screen. I am just a little stuck when it comes to walk-behinds.

Basically, my Draw() loop is something like:
Code: ags
DrawObjects()
SortCharactersByY()
DrawCharacters()

I want to also draw walk-behinds.

This does not work (players are basically always behind):
Code: ags
DrawObjects()
DrawWalkBehinds()
SortCharactersByY()
DrawCharacters()

and this means that the players are basically always in front:
Code: ags
DrawObjects()
SortCharactersByY()
DrawCharacters()
DrawWalkBehinds()

I know this is because I am not taking into account the baseline of the walk-behinds.

What I think the Engine is doing is that it's basically creating the WBs as sprites and then simply sorting the sprites (chars, objects and WBs) in order of Y, BUT there is a mode in there called "DrawOverCharSprite". I think that my plugin could do that, but I am still not 100% how that works?

Any insights would be appreciated.

SMF spam blocked by CleanTalk