[ZScript] Side Scroller Game Starter Kit

Post your example zscripts/ACS scripts/etc here.

Re: [ZScript] Side Scroller Game Starter Kit

Postby Death Egg » Sun Apr 02, 2017 3:01 am

It fixes right movement, but if you start the map and press right, you can't go left at all, and if you start the map and go left, it causes the player to fly uncontrollably fast to the left and can't go right. It's been giving me weird variations of this glitch no matter how I rearrange the code.

BTW, what's the purpose of this line? Like I said I'm new to coding and some of this doesn't make sense yet, though I've learned a lot in the past two days alone.

Code: Select allExpand view
vx = Clamp(vx, -SideMove1, SideMove1);


Also I should have mentioned before, but I renamed Decelerate to Friction and created a new constant for decelerating.

EDIT: Solved the error. I'm not entirely sure what caused it, thought I deleted a line but it's still there. Oh well.
User avatar
Death Egg
 
Joined: 14 Aug 2012

Re: [ZScript] Side Scroller Game Starter Kit

Postby Nash » Sun Apr 02, 2017 5:06 am

That line clamps the values so that they don't overshoot the player's speed. SideMove1 is the value given to the player in the class definition (Player.SideMove).
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [ZScript] Side Scroller Game Starter Kit

Postby Clownman » Thu Jul 05, 2018 4:05 pm

Will there be basic combat functions added such as the player dying or enemy examples? Just curious
User avatar
Clownman
I'm not gonna fight you... I'm gonna kick your ass.
 
Joined: 07 Oct 2011
Location: USA

Re: [ZScript] Side Scroller Game Starter Kit

Postby Nash » Thu Jul 05, 2018 7:48 pm

Clownman wrote:Will there be basic combat functions added such as the player dying or enemy examples? Just curious


I've always wanted to do these, I just don't have much time these days...
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [ZScript] Side Scroller Game Starter Kit

Postby luigiman0640 » Thu Sep 13, 2018 2:52 pm

Is there a way to make it so that the Doom player and Side Scroller player are seperate so that you could make some levels fps and some side scrollers?
User avatar
luigiman0640
 
Joined: 28 Apr 2014

Re: [ZScript] Side Scroller Game Starter Kit

Postby Tormentor667 » Sat Sep 15, 2018 4:11 am

I wonder: Would it be possible somehow to only use this in one single map instead of the whole game?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [ZScript] Side Scroller Game Starter Kit

Postby luigiman0640 » Sat Sep 15, 2018 9:30 pm

I was wondering the same kinda thing! There'd have to be some heavy duty coding to it, but I'd like to see if it is possible to just have it on certain levels.
User avatar
luigiman0640
 
Joined: 28 Apr 2014

Re: [ZScript] Side Scroller Game Starter Kit

Postby Nash » Sun Sep 16, 2018 1:39 am

It's certainly possible but it's out of the scope of a basic game kit (AKA I currently don't have an urgent interest in doing the work for it :)).

[EDIT]: just so I don't look dicky, here, I'll at least give a tip on how it'd be done: you actually use the same PlayerPawn (because it's impossible to change player classes, even with ZScript). What you do is you add a variable, say, movementMode. If it's 0, enable the platforming path. If it's 1, enable the first person path. It should be easy enough to wrap entire sections of the logic into these conditional blocks. Good luck!

If anyone followed the Github, you might've noticed I've sneaked in some minor updates. So far this is just clean-up work but I plan to add the things I said I would add

- Jump through platforms
- Pain and death state
- A simple attack animation
- Moving platforms
- Mantling/ledge climbing (new!)
- Metroid 3/Symphony of the Night-styled tile-based automap (new!)

Then I can declare the SDK as 1.0 and final.

No ETA as usual. When It's Done(tm)
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [ZScript] Side Scroller Game Starter Kit

Postby luigiman0640 » Sun Sep 16, 2018 9:57 pm

Hey, no worries! I get where you're coming from, but thanks for the pointers either way! Definitely gotta check that out some day.
User avatar
luigiman0640
 
Joined: 28 Apr 2014

Re: [ZScript] Side Scroller Game Starter Kit

Postby Hidden Hands » Thu Oct 18, 2018 3:13 pm

I've downloaded this stuff. Do I just put it all in a wad file? Sorry if this has been discussed already I'm just not too sure how to use the stuff.
User avatar
Hidden Hands
Deadite
 
Joined: 20 Sep 2016
Location: London, England

Re: [ZScript] Side Scroller Game Starter Kit

Postby Major Cooke » Sun Oct 21, 2018 11:30 am

I would love for some parallax background setting in a skybox.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007

Re: [ZScript] Side Scroller Game Starter Kit

Postby VriskaSerket » Mon Mar 25, 2019 5:02 pm

This is exactly what I've been looking for, but I have absolute zero knowledge on scripting and whatnot. Basic concept is different sidescroller gameplay mechanics for 3 player classes: Contra-style shooter, Castlevania style (with added elements) and a beat 'em up character like Streets of Rage, all with different item drops from monsters that fit their style.
As I see it, this is the perfect starter kit, but as I said I have no knowledge on scripting and whatnot. Where can I start learning?
User avatar
VriskaSerket
a.k.a Squig
 
Joined: 19 Apr 2015
Location: Land of Tango and Gauchos

Re: [ZScript] Side Scroller Game Starter Kit

Postby Hidden Hands » Wed Apr 17, 2019 4:01 pm

Nash wrote:It's certainly possible but it's out of the scope of a basic game kit (AKA I currently don't have an urgent interest in doing the work for it :)).

[EDIT]: just so I don't look dicky, here, I'll at least give a tip on how it'd be done: you actually use the same PlayerPawn (because it's impossible to change player classes, even with ZScript). What you do is you add a variable, say, movementMode. If it's 0, enable the platforming path. If it's 1, enable the first person path. It should be easy enough to wrap entire sections of the logic into these conditional blocks. Good luck!

If anyone followed the Github, you might've noticed I've sneaked in some minor updates. So far this is just clean-up work but I plan to add the things I said I would add

- Jump through platforms
- Pain and death state
- A simple attack animation
- Moving platforms
- Mantling/ledge climbing (new!)
- Metroid 3/Symphony of the Night-styled tile-based automap (new!)

Then I can declare the SDK as 1.0 and final.

No ETA as usual. When It's Done(tm)


Nash, if you're still about, please help me out with this. I have no idea what I'm doing. A sidescroller is exactly what I need but I can't figure out how I'm supposed to use any of this kit? What do I do? I downloaded your ZIP file of the starter kit... now what?
User avatar
Hidden Hands
Deadite
 
Joined: 20 Sep 2016
Location: London, England

Previous

Return to Script Library

Who is online

Users browsing this forum: Trendiction.de [Bot] and 0 guests