Giter Club home page Giter Club logo

Comments (3)

ThePat02 avatar ThePat02 commented on May 27, 2024 1

definitely cleaner, I feel dumb for not having thought of it hahaha

I will close this issue for now, even tho I won't update the current example scene, as there already is a new one on the way (#55). You are VERY WELCOME to contribute your own examples to the 2.0.0 branch if you find that your testing could help others understand the plugin in a better way!

from behaviourtoolkit.

ThePat02 avatar ThePat02 commented on May 27, 2024

It's kinda hard to read for a first-time user

Yes, I totally agree, that that the current example scene needs some work. It functions as some crude kind of testing and regression-catching device, as it uses most of the new nodes. I am hoping to get some simpler examples in for the next big release.

[...] but what I want to mention in this issue is that there are function calls which do not point anywhere and are dynamically cast. [...] I cannot ctrl+click set_modulate either.

This is a good point, however I think using something like (actor as Actor) can become really tiresome and exhausting to write and read. What do you think of something like this?

## Executes after the state is entered.
func _on_enter(actor: Node, _blackboard: Blackboard):
	# Cast to Actor
	actor = actor as Actor
	
	# Make Transparent
	actor.set_modulate(Color(1, 1, 1, 0.5))
	actor.ghost_state_machine.fire_event("fully_transformed")

from behaviourtoolkit.

TheYellowArchitect avatar TheYellowArchitect commented on May 27, 2024

definitely cleaner, I feel dumb for not having thought of it hahaha

from behaviourtoolkit.

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.