Coder Social home page Coder Social logo

boyquotes / visual-scripting-prototype-for-godot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikica1986vee/visual-scripting-prototype-for-godot

0.0 0.0 0.0 44 KB

Prototype of visual scripting using Godot's node system.

License: MIT License

GDScript 100.00%

visual-scripting-prototype-for-godot's Introduction

#Visual Scripting Prototype for Godot

Work in progress, backward compatibility is not guaranteed. Suggestions are welcome. :)

##Basic overview

Actions are played in response to events. You can use Prop object to see how to implement them in your custom objects or you can use signals.

If action is played it will check if it's conditions (immediate children only, by design) are fulfilled and if they are it will do it's effects (immediate children only, by design). There are different types of actions (Action being the only one implemented at the moment) in line with IfElseAction, DelegateAction, VariableAction, etc...

Effect change states of other objects, for example FadeToEffect will change alpha of some object.

Connecting signal to action. Connect signal to action, then be sure to turn off 'generate method' and call 'play_action' method.

###Important note

If you try to connect some elements inside editor and they refuse to show up, you are not connecting the right type of object or your object does not have required methods. If you are sure your custom object has required methods, make it a tool script (because of reasons that will be fixed during development :P ).

##How to integrate into your project

You only need to place Visual-Scripting-Prototype-for-Godot in your addons directory and enable it in project settings (newly added plugins tab). I suggest you rename it to something less insane or symlink it.

After activating plugin, click on add node (or CTRL + A) and you'll see some new nodes without icons.

At the moment, Monitors are not loaded automatically and there is no icons.

Use CustomSomething for your own actions, effects and conditions.

##Extending stuff

Check out Examples directory. Inside you will find 'ExampleEffect.gd'. Follow directions and it should work. At the moment whatever you make must extend from existing script (effect, action, condition) or Node. Otherwise it will not work with add node dialog.

##Misc info

Visual scripting system focused on productivity and ease of use. Also known as SVS (Simple Visual Scripting, courtesy of bojidar_bg :D ).

visual-scripting-prototype-for-godot's People

Contributors

mikica1986vee avatar

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.