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 - eri0o

#1
Visibility is controlled by the Visible property.

The order on screen is controlled by ZOrder - like a "Z axis". The biggest ZOrder puts the thing in front and the next big one behind this one and so on until the lowest value ZOrder on the GUI layer gets drawn.
#2
You can change the ZOrder of one so that you can have the order you want.
#3
That is a good alternative for script modules that I didn't thought about. But it may work.
#4
I don't have a target use for this now, but if there was a way to load a shader from a string, with somehow accounting for the different graphics driver, it would be possible to have shaders in script modules without packaging them separately.

Edit: nevermind, just remembered that DirectX exists.

Edit 2: I guess a possible progression of this is adding the text editor for glsl and hsls right in the editor under a new project node named shader.
#5
I only found this thread today. I think fullscreen may be broken in some mobile browsers (from reading the above).

Mr. Bear seems to work fine in my laptop. I don't have an ipad, I will need sometime to figure a path to debug.

Spoiler
I always thought that after the initial web port was done someone smarter than me with some JS chops would appear and fix the rough edges or look after it, but it never happened. :/ The issue is while I did some web stuff ages ago I haven't been able to keep up with it since I never had to.
[close]
#6
Here's the manual page about it

https://adventuregamestudio.github.io/ags-manual/Tumbleweed.html

Can't write more right now, but you add each letter at right
#7
QuoteIs it possible to play the video somehow not blocking and not fullscreen in a room

This is supported in AGS 4! I don't have yet the proper docs to point to you how it works since we are working on the documentation still, but I believe there is a topic on the forums that describes the VideoPlayer struct API - it's reasonably simple and has a graphic property you can pass to things that take a sprite slot.

About the specific video without sound, any possibility of sharing the file and the code you are using for playing it?
#8
Whoa, what sad thing to happen to that website. The forums had been running as long as ours I think.  :~(
#9
What was the description? In the manual about Tumbleweed template it says the descriptions use > character for verb interactions.
#10
In the website there is a page where there is an entry called plugins

https://www.adventuregamestudio.co.uk/create/help-support/

I notice that it instead has links to the GitHub source code of the Editor and Engine, and it also has a link to the binary storage of the AGS Templates. For the templates, I believe it would be more useful to link to the source code of them (https://github.com/adventuregamestudio/ags-template-source), since their binaries already come with the engine (but they are available too in the release artifacts of this repository).

In case it is desired, there is a starter plugin project that is here: https://github.com/adventuregamestudio/ags-demo-plugins

But I guess these are more like "Source Code" links category than Plugins.
#11
You have a macro for one of the following letters  T, B, L, R, or for the words TL, TR, BL, BR, CBG.
#12
I've had issues with shaders existing beyond when they should when debugging and halting AGS engine in Visual Studio, ages ago when I played with the OpenGL ES code for shaders used in the tint and stuff. I could solve it by restarting usually. I don't know how to explain but the game would boot and have ghosts tints, shaped like sprites, and only happened in my PC with Nvidia. My video card was new at the time.
#13
It would be nice if there was some way to connect something from audio output to the shader input for fun music synced effects
#14
Yeah, and also, the volume could be something optional right in the play call instead of requiring the need of channel?

I think from what I remember from previous discussions people forget to deal with the null audio channel. I think if there was some way to grasp for errors of audio - like if there is no audio device or the audio file doesn't exist - not sure how.

The other thing is some people like positional audio, but they understand as either it being relative to the player character or relative to the position on screen. There was also at some point a question about having different regions in a room with different music and some crossover transition. But these nuances could also be left for scripting.

The other thing I remember being asked is something like a filter for when the player is in a cave or under water. I don't think this is easy to do with mojoAl. I think this was done in strangeland through a plugin and maybe Laura Hunt asked about it too at some point.
#15
One thing I would like is to be able to pass a volume right when using Play, and have that volume be a percentage that gets multiplied by whatever is the volume type percentage - so I could have a slider for the sounds per type in a menu.
#16
I don't know why this in particular wouldn't work but I would like to note that iTextureDim is already a constant there that AGS fills with the dimension in pixels as float of the texture of the thing you are attaching the shader to.
#17
Any chance somehow the exe and running from the Editor somehow makes it run with a different graphics driver? I think ctrl+v can show the graphics driver at runtime but it also can show it in the log - like, a glsl shader only works with OpenGL driver, hlsl has to be prebuilt and will only work with Directx9 and the software driver doesn't support any shader at all.
#18
I think I can add these as comments in a new PR but I want to wait the ui to update to see if it really appears on it before trying anything. :)
#19
Hey, resurrecting this thread to tell anyone who finds it on Google that a .gitignore has been merged in GitHub here so it should make into their UI soon when creating new repositories.  8-)



(It will take sometime to get into there, it has just been merged)
#20
Ok, it is not pretty but I made my first shader

Code: ags
uniform float iTime;
uniform int iGameFrame;
uniform sampler2D iTexture;
uniform vec2 iTextureDim;
uniform float iAlpha;

varying vec2 vTexCoord;


void main()
{
    // this is both direction and speed, should be lower than 1.
    vec2 dir = vec2(0.15, 0.05);

    // width and height of the texture
    vec2 wh = iTextureDim;
    vec2 uv = vTexCoord;
    vec2 scroll = mod(uv * wh + dir * iTime * wh, wh);
    vec2 uv_1 = vec2 (scroll.x / wh.x , scroll.y / wh.y);
    vec4 color = texture2D(iTexture, uv_1);
    gl_FragColor = color;
}

The idea here is to have the texture be continuous scrolling to some direction.



Then you can use like two overlays for a message box, one that has the shader has the infinite scrolling background and the other on top has the text with frames and a transparent background. I like this for puzzle games UIs.
SMF spam blocked by CleanTalk