Help With Some Programming Events (I'm a noob)

Snakefox89

  • Posts: 5
I'm currently creating a 2D gothic horror castlevania style game, still fairly new to it ( But I have some of the basics down. I was wondering whether you could set me up with some permanent behaviour events for jumping. I've run into an issue where my character doesn't show all the frames of my jumping animation, getting stuck in a single frame, so a proper event script I could use as a template for all my characters and animations would be great.

Other help would also be great, does anyone offer help at an hourly rate?

Special thanks



Luyren

  • *
  • Posts: 2805
I'm not here to take your offer, but to show you existing resources that can get you started:

If you click to add a behavior to your actor and select "From my Library", there are some pre-made behaviors you can use as reference.

Here you can also get more references, including a jump and run kit: https://www.stencyl.com/developers/samples/

Finally, my Player Control behavior is pretty comprehensive on the subject of platform movement, and you can get it here for free. Use it directly or just as reference: https://luyren.itch.io/luyrens-miscellaneous-stencyl-behaviors
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Snakefox89

  • Posts: 5
Thank you very much for this! I made a donation towards your work :) Will be giving these my best shot! Btw, if I'm still struggling further do you know if there is paid help or hourly work anywhere for stencyl users? Many thanks.

Snakefox89

  • Posts: 5
Hey there, so a couple of things i've noticed with player control. I tried your preset and my player walk animation isn't playing properly, the character is just sliding across the tiles both left and right - Another thing is that  when I hit jump walking towards the left side of the screen the animation immediately switches to right!  Any help i would greatly appreciate, thanks.

Snakefox89

  • Posts: 5
Yes, when I hold left and enter, instead of facing left and jumping in the left direction my character sharply shifts towards facing right whilst holding down the left and enter - showing the right animation instead.

Luyren

  • *
  • Posts: 2805
Your problems are not related with the behaviors. For general tutorials, you have the crash course: https://www.stencyl.com/help/start/
and Stencylpedia: https://www.stencyl.com/help/toc/

For some of my videos explaining some key concepts: https://www.youtube.com/violinistpenguin
You are having issues with friction, which you want to set to 0. A video specifically on the subject: https://www.youtube.com/watch?v=97M4hchcfwI

I recommend carefully reading the description of each attribute in the behavior, and most importantly go through both Crash Courses at least once to get familiar with Stencyl.

And finally, discord is more active than the forums:  https://discord.gg/XjawJCW
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Snakefox89

  • Posts: 5
I have changed the friction and bounce settings to 0 but i'm still encountering the issue where as I press the jump button moving left my character instantly faces right. Where I want him to jump and look left. Okay, thanks. I'll take a look again but this is quite a specific issue so maybe I should ask on the forums.

Luyren

  • *
  • Posts: 2805
Assuming you attached my Player Control behavior to your actor, you probably set your jumping right animation to the jump left animation attribute.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.