Comments (6)
Hello, sorry for the late reply
There are multiple ways, that depends on how you are coding your game. What you are asking is "how to show a video without borders and controls" ?
Here are the supported configs you can use with the show video
action : modal
, immersive
, background
and fullscreen
.
I think immersive is what you need, but this covers the whole screen. You might need to edit the CSS to set the correct size/position of the video.
For a spritesheet animation, a simple div with a background image does the job (it might not be responsive though). Or you can also use a canvas.
Keep in mind that SVG can be used as an image (it can be a character sprite for example), it's sometimes useful for basic animations. However, inside an image tag, you can't really control it using JavaScript. In this case, you can directly add it inside/over the HTML of the game.
from monogatari.
are there any existing examples of how this can be achieved?
It really depends what you need. My own games adds a html container that overlays the game screen when I need something that monogatari can't do (eg. acessing to the protagonist's PC to read his mails)
I've seen examples of point and click in discord, this requires to force the aspect ratio because it uses CSS to position the choices buttons at the exact percentage position in the screen : https://newrem.com/monogatari/helpExamples/pointAndClickAdventureExampleInvisible/
blink animations
i'd embed the images [without eyes + open eyes + closed eyes] inside a SVG image that contains a CSS animation to toggle the closed and opened eyes.
from monogatari.
@LoganTann are there any existing examples of how this can be achieved?
For example a clickable image sprite that starts a conversation with the character on that sprite?
Lets say we want to simulate a room with 2 or more characters/items that can be interacted with by clicking on them.
Or even just a simple looping spritesheet for a character avatar (blink animations?)
from monogatari.
its a nice example but its not source code on github :)
from monogatari.
its a nice example but its not source code on github :)
I just noticed I misunderstood what you're looking for : characters with blinking eyes, clickable characters instead of traditional choices.
Actually, there is not such examples I know in github. I still have an idea on how to do this, but it will require some time to create it. I'll reply to this issue once it's done (don't hesitate to reply if you have found a solution by yourself).
Hyuchia created a repository dedicated for templates or examples created by the community (https://github.com/Monogatari/Community), maybe I would create this example there ?
from monogatari.
from monogatari.
Related Issues (20)
- error while running monogatari HOT 3
- Default Expression Does Not Work The Way The Docs Indicate HOT 3
- Move Transition Doesn't Work
- Jquery shouldn't be shipped with Monogatari dist folder, here is why : HOT 2
- particles [Particle_Name] doesn't work HOT 3
- Indentation and line feed HOT 1
- How to use Monogatari as a ES6 module. HOT 1
- Hovering or clicking on the Volume Slider in the settings menu in game overrides script specified music volume completely. HOT 1
- dragonbones skeleton animation runtime support
- Trying to load monogatari inside a react project - works on first load, fails on every next load HOT 3
- Ability to load assets from memory instead of a static folder HOT 4
- Use WebAudio API to loop music (to guarantee gapless loop) HOT 1
- Current status HOT 3
- Particles aren't cleared when loading a save
- Distraction free mode messes up the css style of text-box
- Can't show videos via show keyword
- Stop video on user interaction
- Screenreader Optimization
- parcelRequire is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monogatari.