Search results

  1. Kronicide

    Internal/back-end differences between MV and MZ?

    Thanks, that sounds pretty good! Any first impressions of actual changes in performance?
  2. Kronicide

    Internal/back-end differences between MV and MZ?

    I'm considering whether to move my (somewhat ambitious) plugin project to MZ, but this hinges exclusively on what the internal differences are between the versions. Is there a resource around that explains this? I've heard rumors about updated PIXI and improved performance, but would love some...
  3. Kronicide

    How to draw shapes on a game map?

    I figured this out eventually. What I did was to create a PIXI sprite container of the same size as the map, align it with the map using $gameMap.screenX() etc, fill the container with a grid of tile-sized sprites, and then change the opacity of these sprites to highlight the view cone of a...
  4. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    I've been working on the visible view cone thingy. The goal is to make it possible to create stealth puzzle levels where you can see what the guards/monsters can see. In the video below the view cone is attached to the player because it's easiest to test and demonstrate. (It makes no sense in a...
  5. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    Hi! Sorry about the delayed response. I'm not sure exactly what you have in mind? Do you mean that the guard sees you when you are right below the cliff and the guard is right at the edge above you? Sounds reasonable, but it's not how the geometry plays out on this map. He will see you if the...
  6. Kronicide

    Fetch map (pixel) coordinates of screen coordinates?

    So it took me a little too long to figure this out, but this.position.x = -($gameMap.displayX() * $gameMap.tileWidth()); this.position.y = -($gameMap.displayY() * $gameMap.tileWidth()); works perfectly. I'm not sure why, because I don't know why $gameMap.displayX() has a positive value when...
  7. Kronicide

    Fetch map (pixel) coordinates of screen coordinates?

    Here is a hopefully more readable version of the code snippet. I'm sure there is a much saner way of adding a new sprite container as a layer to the game, but I guess I wanted to see if I could do it this way. (Which I almost could.) Any comments about better ways of doing this are very welcome...
  8. Kronicide

    Fetch map (pixel) coordinates of screen coordinates?

    Thanks for the responses, much appreciated! I'm writing a plugin, so this needs to work for arbitrary resolutions and map sizes. I didn't know about $gameMap.displayX(), that may come in handy! (There are tons of things I don't know about how RMMV works.) Here's what I'm doing so far. I'm...
  9. Kronicide

    Fetch map (pixel) coordinates of screen coordinates?

    Hi! I'm wondering if there is a simple way of, in a plugin, getting the map (pixel) coordinates of a point on the screen? Let's say that the map is larger than the screen, and that the map extends up and to the left outside of the screen. Then 0, 0 (upper left corner) on the screen may be, say...
  10. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    I'm travelling so can't reply properly until end of next week. I hope you get something working. (I've made some advances with the option to display the view cone of the guard on the map, that I'll keep working on then.)
  11. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    So I discovered now that if you set the event level to "same as character," then you can face the event and interact with it using the keyboard. Mine were set to the default "below character," and you have to stand on top of those to interact with them, it seems. I guess that makes sense. (But...
  12. Kronicide

    How to draw shapes on a game map?

    Alright, I've tried to read the Trb_VisualizationPassable.js code (link in ShadowDragon's post above), and I think I need to read a book on how to draw graphics in JavaScript to get this to work. Here's what I want to do: I have a function which checks whether an event/player/follower can see...
  13. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    0 is current event, -1 is the player, -2, -3, ... are the followers. The other numbers are regular event IDs. I wanted to make the demo as simple as possible. On my own test map the ghosts take damage from the light, and if you corner them in the light they soon "explode." That's also just a...
  14. Kronicide

    How to draw shapes on a game map?

    Right. Good point, thanks.
  15. Kronicide

    How to draw shapes on a game map?

    I only noticed this link now, that does look like the right sort of thing, thanks! Edit: And it's a super short bit of code too, glorious! :^)
  16. Kronicide

    How to draw shapes on a game map?

    Thanks for the replies! I have everything I need except a statement that basically does: draw a filled rectangle of size (w,h) at (x,y) I think it must be something close to what's used in TerraxLighting for the lighting effects, where he draws a gradient on the map, but mine is simpler. But...
  17. Kronicide

    How to draw shapes on a game map?

    I need to learn how to draw simple, flat (but semi-transparent) shapes on top of the game map, in a plugin. As in, covering a number of map squares with tinted rectangles, for example. I think I need to create a graphical object, set opacity, and use the fillRect method. But is there a...
  18. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    Cool! Btw, to test if height is really involved in the line-of-sight calculation, one can just increase the height of the characters in the parameter settings, and see what happens. :stickytongue:
  19. Kronicide

    Kron's AI Base v. a0.1 (upgraded)

    Here's the demo game. I've updated the plugin as well. It now calculates line-of-sight in three dimensions, using region IDs for height information. The height of characters is set as a parameter. (This means that the demo video above is no longer correct.) There is also a simple function that...
  20. Kronicide

    How to call "isMapPassable"?

    Thanks, I appreciate it. I think what might have confused me here is that the function doesn't actually use any properties of the calling object. It just checks generic map properties. So I'm calling it from $gamePlayer, even though I'm not (necessarily) checking whether it's the player that can...

Latest Threads

Latest Posts

Latest Profile Posts

1686161626348.png
This is something I randomely made in my free time while trying to find alternative ways to post images here instead of imgur, hope it doesn't look too blurry or bad.
Had an epiphany on how I could turn my massive double digit year planned project into like a 4-5 years thing, much simpler, smaller, still pretty grand, yet far more doable.
Considering whether I should still release my demo or not.
Reckon I might. It's its own story from start to finish and it would still work as a tech preview or something.
Halp, gaemake motivation sinking!!
Gotta love those BPD mood swings. At least the swing was up this time LOL

Forum statistics

Threads
131,718
Messages
1,222,543
Members
173,461
Latest member
---ggg
Top