Author Topic: [XP] Dash and Sneak  (Read 10965 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
[XP] Dash and Sneak
« on: September 29, 2009, 01:34:17 PM »
Dash and Sneak
Authors: game_guy
Version: 1.1
Type: Custom Movement System
Key Term: Custom Movement System

Introduction

This script adds a little running and sneaking to your game. Don't use this if you're using Blizz-Abs because Blizz-Abs already has a running and sneaking.

Features

  • Allows Running and Sneaking
  • Allows Custom Walking, Running, and Sneaking Speeds
  • Allows Custom Running and Sneaking Buttons
  • Detects Walking, Running, and Sneaking
  • Disable/Enable Running and Sneaking

Screenshots

N/A

Demo

v1.0 Demo
MediaFire

v1.1 Coming Soon

Script

(click to show/hide)

Instructions

In the script.

Compatibility

Not tested with SDK.

Credits and Thanks

  • game_guy ~ for making it
  • RoseSkye ~ helping me think of a script to make and beta testing

Author's Notes

Give Credits and Enjoy!
« Last Edit: February 18, 2013, 09:35:57 AM by Blizzard »

Offline RoseSkye

  • Ban requested
  • Chaos User
  • ******
  • Posts: 1201
  • LV: 58
  • Gender: Male
  • Chaos Project's Black Sheep
    • View Profile
    • Loveless Games
Re: [XP] Dash and Sneak
« Reply #1 on: September 29, 2009, 01:34:54 PM »
First post, I win.

Offline fugibo

  • World Conqueror
  • Chaos User
  • ******
  • Posts: 1966
  • LV: 44
    • View Profile
Re: [XP] Dash and Sneak
« Reply #2 on: September 29, 2009, 02:11:46 PM »
First post, I win.

Second post, I win twice as much.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Dash and Sneak
« Reply #3 on: September 30, 2009, 04:09:40 AM »
any comments on the actual script itself? Yes I know this can be easily evented but....I was bored

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Dash and Sneak
« Reply #4 on: September 30, 2009, 11:03:40 AM »
It's a nice thing if you don't want to bother with events.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Dash and Sneak
« Reply #5 on: October 30, 2009, 05:51:07 AM »
I have to say this is the first running script I found that can use conditional branch's to detect if the player is or not. Plus be able to turn it on and off.
This is just what I needed for my game ;3

However can you set it so you can disable the run/sneak separately? I'd like to make items that if you have it equipted you can run, and another to stealth. However I only see away to turn them both on or off together.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Dash and Sneak
« Reply #6 on: October 30, 2009, 05:58:19 AM »
updated so you can disable running and sneaking.
TO do what you want to do make a parallel process to see if any actors are wearing the equipped thing then follow the syntaxes in the script.

@mods/blizz: I would move this but I'm not sure if it should.
Its been unmoved awhile before I became a mod so I figured it'd stay here. Move it if it should be moved though I wasnt sure.
« Last Edit: October 30, 2009, 06:02:08 AM by game_guy »

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Dash and Sneak
« Reply #7 on: October 30, 2009, 06:11:51 AM »
I was just about to say that this should be an event system, LMAO ...
Maybe I'll just have to add the sneak feature to CARJES!! Then what G_G!? XD!!

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Dash and Sneak
« Reply #8 on: October 30, 2009, 06:14:20 AM »
Hey I know this can be easily evented, I just prefer it when scripting makes it easier. Go ahead and add it to CARJES. lol
I just like it when scripts make my eventing life easier.

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Dash and Sneak
« Reply #9 on: October 30, 2009, 06:33:18 AM »
Haha, I on the other hand find eventing much easier.
The ability to do things may be limited in some ways, but it's all laid out for you.

No surprises ...
Use the interface to point and click. This does that. If this, then that.

Scripting goes to the roots. Takes memorization of codes, and the ability to comprehend the coding. Without somebody teaching me, I doubt I will ever learn. I need help for things that are relatively unknown to me if I wish to master them.

I can edit code, but as far as writing my own ... out of the question.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Dash and Sneak
« Reply #10 on: October 30, 2009, 06:39:55 AM »
Edit: was a small conflict with another script, had to move things around.
and it was from a new game :P
« Last Edit: October 30, 2009, 06:48:43 AM by Taiine »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Dash and Sneak
« Reply #11 on: October 30, 2009, 06:44:16 AM »
Try starting a new game. I dont get the error thats odd.

You cant do this from a loaded game thats probably why.

@calintz: Get me back into eventing D: I find it boring and hard to get into, especially when you know how to script and pretty much can event with scripting.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Dash and Sneak
« Reply #12 on: October 30, 2009, 06:48:08 AM »
The off switch causes the play to be stuck in place now >.< I have an event that you can walk over to turn it on and off. it worked in the other! But now walking over the off one gets the player stuck in place.

Also if I use a conditional branch to change sprites if running/sneaking rather default that way or if you have/don't have the item to do it, or even if it's set to off, the speed wont change, however the sprites will :/
« Last Edit: October 30, 2009, 06:51:39 AM by Taiine »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Dash and Sneak
« Reply #13 on: October 30, 2009, 06:51:11 AM »
@Taiine: I'll look into it tomorrow, upload a demo so I can see the bugs, and I'll fix it. Its pretty late over here so I probably made some scripting mistakes.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Dash and Sneak
« Reply #14 on: October 30, 2009, 06:54:19 AM »
Okay I'll put together a test game with it to show the issue.

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Dash and Sneak
« Reply #15 on: October 30, 2009, 07:09:54 AM »
Well, if anything will do the trick, it's gonna be my evented snowboard minigame.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Dash and Sneak
« Reply #16 on: October 30, 2009, 10:14:57 AM »
*looks at template* *looks at this topic* It's a match, ready to move. *pulls G_G's arm and points to the move button*
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Dash and Sneak
« Reply #17 on: October 30, 2009, 12:08:16 PM »
http://www.easy-share.com/1908292360/DanStest.exe

Theres the example.

The top two plants are the 'off' switches and freaze the player in place if walked over.
The path over the water checks if you are running and if so jump it.
the bottom plans are the 'on' switches that.. can't be tested cause off freazes you :/

Edit: I also just tried it in a parallel process to have it off at game start, that and even an auto run/self off switch and it will still freaze the player in place and not allow them to walk.
« Last Edit: October 30, 2009, 04:05:48 PM by Taiine »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Dash and Sneak
« Reply #18 on: October 31, 2009, 03:29:55 AM »
Have no idea why it just freezes like that. But I'm going to completely remake the script and carefully make sure I dont mess up anything.

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Dash and Sneak
« Reply #19 on: October 31, 2009, 03:31:28 AM »
Autoruns don't allow the player to move - they're mostly used for cutscenes.

Parallel process allows the player to move. You should be using these for the events.