piranha305's Recent Forum Activity

  • If construct could get to the point where it had a tool to help author behaviors and plugins...So at least you could just write 1 file, and all you had to do was fill in the actual script functions (like tick), life would be much better. Sure you need to define ACEs, but doing them accross multiple files is a pita.

    not exactly 1 file, but this framework by skymen is pretty good, you define all the aces in one file, and then can forward the implementation to the instance

    github.com/ConstructFund/c3ide2-framework

    there is also a CLI here - github.com/ConstructFund/c3ide2-cli

    and also I definitely agree with the addon SDK as is very cumbersome to work with and there is a ton of boilerplate. it also feels very disconnected from the editor itself making eth develop experience suffer.

  • Currently object param in aces can have an optional allowedPluginIds property that filters the selection based on the plugin type?

    Is there an equivalent to this that filters the list on object that have attached a specific behavior?

    Like being able to pass in a behavior id and have the list only show objects that contain that specific behavior?

    Tagged:

  • One thing that could help is highlighting the awesome examples on social. There are some really sweet examples that would catch people eye with some gifs and draw attention to the engine.

  • I hope this is useful to somebody else other than Mikal (I doubt it :D)

    This is super helpful, thanks for this feature!

  • Is there currently a way for a behavior to draw stuff to the editor.

    Thinking of like helper gizmos

    To visualize thing in the editor?

    Tagged:

  • I was trying to emulate. the picking of object that were created on the same tick. like what happens when using "Spawn another object"

    on the SdkType for the Sprite, there are 2 functions BeforeRunAction(method), and AfterRunAction(method) which are essential to keep track of the instances.

    These function on the sdkTypes are called automatically by the framework for certain ActionTypes

    CallBeforeAfterHooks() { return this._actionType === 3 }

    Is there a way from the addon sdk to control, what type of action this is? or to trigger the hooks? I have been trying to reverse engineer this for a few hours, thought it might be better to ask?

    I know actionType === 1 is for User Scripts, but that is as far as i have gotten

    Tagged:

  • I've been holding off on exploring the custom actions, but what are the general pros and cons of custom actions vs. built-in functions?

    On the surface it "seems" like built-in functions but with copy-picked enabled.

    You get polymorphism with families. when different object types have the same custom action.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Recently a signal trigger condition was added to last beta. currently only way to emit signal is through the event sheet? Is there a possibility of adding this functionality to the JavaScript API?

    Currently we can work around this with creating an event sheet function that emits the signal and just call that function.

    Tagged:

  • I had made a video where I go over one of the use cases for this in a game I am working on. https://www.youtube.com/watch?v=MEQtDCqeDu4&t=43s&ab_channel=Piranha305

    the video is quite long but, in a nutshell, I had a color picker system that was used on multiple layouts and when a new color was selected, I would create and dispatch a color-changed event (I would attach the hex value to the event data)

    I did run into a few issues removing events, and getting unintentional duplicate events, so I created a manager class to ensure events would not be duplicated and cause issues and also to keep a function reference used to remove events.

    But to consume the events you just need to call addEventListener on the instance.

  • Subscribe to Construct videos now

    Been working on some card games prototypes recently, took some inspiration from Slay the Spire, for this one. I'm thinking is going be a rouge-like, where you need to rebuild you deck each run, and each character will start with specific cards. there are also equipment cards, that will modify the cards or give specific effects. what do you guys think? would you play something like this?

  • fingerskier Okay I think I might know what might be happening, so when you make changes to the addon code in c3ide, you need to click on the button that says (Compile Only)

    this process get ran when you click Test C3 Addon, that step is what create the actual files that will be served to construct. this is needed because the way c3ide handles the addons files differs from the final structure of the actual addon. its what combines all the aces into the ace.json/the lang.json/ and the actual implementations, so when you make changes in order for it to be reflected in files the web server is sending to construct you need to rerun this step. (you can leave the web server on while you run this process)

    Also There is a setting in options called Compile on Save (which will do this automatically when you save the project), so you can just start the web server, and when you make changes and save, it should good to go on the web server. i don't recall if you still need to restart construct, i don't recall if they cache the dev add when it loads?

  • fingerskier I just pushed out an update to c3ide to set "Cache-Control: no-store" header to all the responses, please let me know if you run into any issues!

piranha305's avatar

piranha305

Early Adopter

Member since 26 Apr, 2016

Twitter
piranha305 has 34 followers

Connect with piranha305

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x4
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Lightning Draw First person to up-vote a new Construct 3 release
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies