[ZScript] Side Scroller Game Starter Kit

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Death Egg
Posts: 198
Joined: Tue Aug 14, 2012 10:16 pm

Re: [ZScript] Side Scroller Game Starter Kit

Post by Death Egg »

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 all

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
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by Nash »

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
Clownman
Posts: 882
Joined: Fri Oct 07, 2011 6:35 pm
Location: USA

Re: [ZScript] Side Scroller Game Starter Kit

Post by Clownman »

Will there be basic combat functions added such as the player dying or enemy examples? Just curious
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by Nash »

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
luigiman0640
Posts: 100
Joined: Mon Apr 28, 2014 6:18 pm
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by luigiman0640 »

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
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by Tormentor667 »

I wonder: Would it be possible somehow to only use this in one single map instead of the whole game?
User avatar
luigiman0640
Posts: 100
Joined: Mon Apr 28, 2014 6:18 pm
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by luigiman0640 »

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
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by Nash »

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)


UPDATE: Due to lack of motivation, I have decided not to expand the kit with any additional features because I cannot make assumptions about what kind of side-scroller someone would want to make. I also have little motivation to add any more features. I am unfortunately not here to make your game for you. :)
Last edited by Nash on Mon Jul 29, 2019 1:30 pm, edited 1 time in total.
User avatar
luigiman0640
Posts: 100
Joined: Mon Apr 28, 2014 6:18 pm
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by luigiman0640 »

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
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by Hidden Hands »

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
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: [ZScript] Side Scroller Game Starter Kit

Post by Major Cooke »

I would love for some parallax background setting in a skybox.
User avatar
VriskaSerket
Posts: 436
Joined: Sun Apr 19, 2015 3:44 pm
Preferred Pronouns: He/Him
Location: 6th Layer of the Abyss
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by VriskaSerket »

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
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: [ZScript] Side Scroller Game Starter Kit

Post by Hidden Hands »

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
TIIKKETMASTER
Posts: 31
Joined: Thu Jul 29, 2021 2:02 pm

Re: [ZScript] Side Scroller Game Starter Kit

Post by TIIKKETMASTER »

how would it be possible to make the character move up/down as well? like enabling W and S for games with a more 3d flat surface while still retaining that side view?
Post Reply

Return to “Script Library”