[SCRIPT] Ladders/Stairs/Climbing Area/Halcove + Water Puddle (Interact Entities)

White Dragon said:
You need to add the water_puddle and set it in your level#.txt
Read the 1st post!
Already did that, yet they still disappear.
(looks like I'm gonna have to disable the water puddles in my game for now, until I find a way to make them reappear again.)
 
sammy Smith said:
White Dragon said:
You need to add the water_puddle and set it in your level#.txt
Read the 1st post!
Already did that, yet they still disappear.
(looks like I'm gonna have to disable the water puddles in my game for now, until I find a way to make them reappear again.)

Oh, did you have set the right "height" value?
try:
    setentityvar(self, "height", 3); // height
for example (I see that your characters are small)
 
script update + hotfixes.
now you can retrieve if you are on stair/wave/water puddle

with:
•getentityvar(self,"water_puddle");
•getentityvar(self,"stair");
•getentityvar(self,"wave");
 
Questions:

Can stairs be used for any diagonal levels?
Example: http://vgmaps.com/Atlas/Arcade/WarriorBlade-RastanSagaEpisodeIII(J)-FairyForest.png

Does moving sideways automatically move up/down on the stairs?

Also, if you just want stairs, not ladder or water, do you have to add everything in the zip anyhow? I just ask because I like to know what all my files are for and there's so many scripts. But I guess I don't have to go over them all with a fine tooth comb.
 
Sure you can!! Stairs and ladders are full compatible with 2.5D levels ;)
Pay attention to:
setentityvar(self, "width", X); // width

set the right width

For stairs you can set additional params like:
•setentityvar(self,"subject_to_base",value): 0,1 --> the enity cant stay under the stair
•setentityvar(self,"subject_to_depth",value): 0,1,2 --> USE IT TO BLOCK THE ENTITY. 0 means that you can walk in depth. 2 is for blockade totally in the middle and 1 to block only when the player is stopped. ### I like subject_to_depth to 1 ###
•setentityvar(self,"subject_to_edges",value): 0,1 --> blockade on edges

set these params all to 0!!


ps. yes you need to copy all files. this is an "all in one" script for speed-up improvements and for interaction between the new features!
 
Updated!
- Added horizontal ladders:
- ladder_c changed into ladder_v

Now is:
•ladder_v = vertical ladder
•ladder_h = horizntal ladder
 
Script compile error in 'data/scripts/lib.c': COIN_SYSTEM line 904, column 9
Script error: failed to import 'data/scripts/lib.c': failed to compile

********** An Error Occurred **********
*            Shutting Down            *

Can't compile script 'keyall'
Were there any undefined constants in the script?
 
Back
Top Bottom