i fixed the ladder! yaay!!! i delved into the wonderful world of groups, and used the original script that was in the example file (thank you chris street) and made two triggers that if the top markers y is equal to the y of the players bottom edge and the opposite if the player is just overlapping the ladder, then if the player hits up or down (depending on the trigger) then the ladder group opens, and in the group the player is always at the x of the ladder and the y velocities do something (whatever was in the example) and if the player collides with the backdrop, presses left, right or gets within the top markers y-15 then the group deactivates. and on the last one the players y gets set to the top of the marker, so hes not climbing all up into the roof (that was obnoxious). the one problem which really isnt that big of problem, when the player enters from the top, the player just kind of falls down, which i dont really care about, but id like to know why.
i think its kind of cleverish, and it seems to work. any suggestions on how i can improve it?
another quick question. im debating on the character graphics. should i stay cartoony or make them a bit more realistc?
|