Slippery blocks.

Tools, Editors and other programs around SMC.

Moderator: SMC Team

Slippery blocks.

Postby segfault101 » 08 Nov 2007 19:30

This patch adds the capability of making specific blocks slippery, providing an ice effect. Acceleration and deceleration is divided by five. Currently you'll have to add the variable to the sprites manually like this:
Code: Select all
<Property name="ground_type" value="slippery" />

An update might be posted making the ice blocks slippery by default.

Worth noting is that it adds a a variable called "groundtype" semi parallel with "massivetype".
This means that other things can be added such as sand, "springable" or anything else you can think of.

This isn't very flexible however. I have been considering rewriting it as a flag system in order to allow a block to be both slippery and springable.
Attachments
slippery.patch
Adds a &quot;groundtype&quot; variable to the sprite class, which controls certain player behaviors.
(5.27 KiB) Downloaded 423 times
User avatar
segfault101
Turtle Shell red
Turtle Shell red
 
Posts: 29
Joined: 04 Apr 2007 17:48

Postby Guest » 09 Nov 2007 00:20

Although I don't understand the technical aspects I wanted to thank you. Variation in grounds types (sand, ice, springs) would add an incredible amount of variety to the game.
Guest
 

Coooooooool

Postby helios » 09 Nov 2007 01:27

Very, very cool! (Pardon the pun!)

Thanks for your work on this Segfault! This will definitely give level designers something new to play with! (and hopefully give us some new fun levels to play with ;) )
Less talk. More draw.
User avatar
helios
MVP
MVP
 
Posts: 329
Joined: 23 Oct 2007 22:34

Postby BowserJr » 09 Nov 2007 10:29

I won't be able to use this in levels though because so few people will have this patch. That includes:
1.) Everyone who uses Windows
2.) Everyone who uses a repo version
3.) People who do compile, but don't check this site often.

Until it's an official feature, we can't really do a lot with it :(
User avatar
BowserJr
SMC Team
SMC Team
 
Posts: 1543
Joined: 05 Feb 2007 14:07
Location: London, UK

Postby FluXy » 11 Nov 2007 03:05

Should be soon in SVN but with a change where the ground_type is defined.
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2857
Joined: 04 May 2004 19:44
Location: Germany

Postby FluXy » 30 Nov 2007 02:25

Is in SVN 880 :)


Updates :
- moved ground_type to image settings
- added earth, ice, stone and plastic type
- affects running smoke and walking animation
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2857
Joined: 04 May 2004 19:44
Location: Germany


Return to Add-Ons and 3rd Party things

Who is online

Users browsing this forum: No registered users and 1 guest

cron