MakubeX's Recent Forum Activity

  • rexrainbow

    I tried calling the Physics behavior action ApplyImpulseAtAgnle from within one of the actions in my plugin but it throws and error when the function ApplyImpulseAtAgnle() tries to call the function getInstImgPointX().

    Error says: 'this.getInstImgPointX is not a function'

    So it looks like problem is 'this' is referencing my plugin. Is there a way around this?

    Thanks!

  • Thanks Rex, I'll try that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm looking for a way to apply the same set actions to any Sprite object type.

    More specifically, I have different types of Sprites to which I apply the same Physics actions (from the Physic behavior) to each object except with different angles. Now I know I can create a family but then I wouldn't be able to set different angles (would I?).

    So I thought maybe I could create a function in the Event sheet and set a custom condition that picks the Sprite and then have access to the Actions available to the picked instance without duplicating them in my plugin. This way I can call this function in the Event sheet for each of the Sprite types to apply the actions.

    Is it possible to inherit actions like that?

    Thanks.

  • Just want to clarify for anyone else reading this:

    cr.plugins_.Sprite.Instance is not defined, I think Ashley meant cr.plugins_.Sprite.prototype.Instance

  • Awesome, thanks!

  • Well, I don't really needed as this is for practice, but I was thinking of what if there was a scenario where I loop through the objects and check if the object is a Sprite and if so then apply some actions to it.

    Also if I have a function that takes a UID and I want to check what plugin the instance with that UID belongs to.

  • Say I pick a random instance (or all with layer.instances[]), is it possible to get the id of the plugin (ex. Sprite) the object type of the instance belongs to?

    I know how to get the name of the object type and reference the plugin, but I haven't figure out how to get the name (id) of the plugin.

    Is it possible? (without hacking the official code, of course)

    Thanks.

  • Is it possible to pick an instance only by UID without needing to choose an object?

    Say I know the UID I want to pick but don't know the object type. I would like to add an event that simply picks by UID (similar to getElementByID).

  • Sorry for the late reply. I forgot I posted this. I was thinking in case some other animation was triggered and interrupts the current animation but I couldn't necessarily predict what animation interrupted it.

  • CodeMasterMike

    It looks like the descriptions for "Start time counter" and "Stop time counter" in the Add action screen are inverted.

    Also, in this same screen, maybe this is just me but when moving my mouse cursor from top to bottom over "Destroy Time Manager instances" the text disappears. If I mouse over it from bottom to top it reappears.

  • Anyone?

  • Is there a way to check if an animation has stopped but not necessarily finished?

    I'm looking for a way to check for when a specific animation has stopped even if it's interrupted which doesn't seem to trigger the "on animation finished" event.

    Thanks in advanced.

MakubeX's avatar

MakubeX

Member since 29 Jan, 2013

None one is following MakubeX yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies