Giter Site home page Giter Site logo

Comments (2)

blurymind avatar blurymind commented on May 10, 2024

I am thinking of adding something like this in dialoguetools

https://codepen.io/blurymind/pen/wvZzggG?editors=1112

It will enable storing actor stats or inventory in a structured way, that can then be used for implementing UI in gdevelop.
So if you do this in yarn:

// init
<<set $c.tom.outfit = work_suit>>
<<set $c.maya.outfit = winter_coat>>
<<set $c.tom.mood = happy>>
<<set $c.maya.mood = sad>>

to build a HUD in Gdevelop, you will be able to dig into "c" and loop over all existing characters ([tom, maya]), then you can loop over each stat ([outfit, mood])

Keeping that stuff in yarn state greatly simplifies persisting it and kills the possibility of copy pasta errors

from gdevelop.

blurymind avatar blurymind commented on May 10, 2024

experimenting with this now in a javascript event - i was able to extend the dialogtools functionality without even running gdevelop in dev mode, which is excellent :D

It does work very nicely, but i am hitting one pesky limitation: Gdevelop's ui extension framework doesnt allow custom expressions to return an array
@Bouh @4ian is that something that is there but hidden? I wonder if there is a way around it?

is this advances nested variables functionality in yarn state something that would be beneficial to pr to gdevelop?
I just wonder if its worth spending the time to create a demo and make a pr to dialoguetools to add these extra utility methods/expressions I am making..

from gdevelop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.