How do I play animation on click via spriter plugin?

0 favourites
  • 4 posts
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • hi, I'm using BrashMonkey's scml plugin which allows you to put your spriter project into construct 2.

    more info can be found here if you're interested:

    everything is working fine, other an issue with playing an animation when RMB is clicked. Its for shooting a gun.

    the animation jitters for a moment but stays on idle.

    I'm doing it like so >On Right Mouse Clicked > Set animation "SHOOT"

    does anyone know of a way to make this work? I think im not setting it up right & need to further convince the system to do what I want - im just not sure how to go about that.

    if this isnt enough info ill upload my .capx

    any help appreciated - thanks

  • You probably have some overriding idle animation logic. But yes this is kinda impossible without the .capx, cut it down and link!

  • true, here's the .capx (it might be a bit messy - this is my first project with c2

    https://www.dropbox.com/s/82f9agiw6m3bg ... .capx?dl=0

    Might be a big ask but i have another issue ive just run into if you're able to help with it:

    I want the bullets to be able to pass across my character if they happen to come in contact with her - rathe r than having to guide it over her..

    i did this with a simple 'On Collision with PlayerBox disable bullet collisions' although this makes the bullets stop dissapearing when they collide with the vortex....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pretty good guess. Event 27 your idle animation logic is always playing when you right click and overrides the shooting animation. If you disable this you'll see it go into the shoot animation on right click. You'll need to split scenarios so that when you are going to shoot, the idle animation does not apply. At the moment it plays whenever the player is touching the floor and the stutter jump you are seeing is the jump to start with 40ms blend logic or resetting of the idle animation.

    For the bullets passing through, the idea sounds good. Just make sure to enable bullet collision again when not in contact with the player. It will need some fine tuning though I guess.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)