I have a project with walls and cielings this is NOT a problem I just want scripting for walls
and cielings also I will upload it called the adventures of oreo,sandstone and flopsy also if you fix
this walls=gray cielings=blue heare a the scripts
when gf clicked if < touching color green? > else change y by 1 endsorry if this comes out wrong
Last edited by JamieBruce (2012-09-06 15:01:50)
Offline
This may be a bit to complicated but this is for wall detection and your character will will run up slopes as well. This does not cover the ceiling though.
when gf clicked forever change x by (xvelocity) change y by (yvelocity) if <touching [course v]?> set [xcollision v] to (1) else set [xcollision v] to (0) end if <(xcollision) = (1)> if <touching [course v]?> change y by (xvelocity) if <touching [course v]?> change y by (xvelocity) if <touching [course v]?> change y by (xvelocity) if <touching [course v]?> change y by <(xvelocity) * (-3)> change x by <(xvelocity) * (-1)> set [xvelocity v] to (0) end else change y by <(xvelocity) * (-1)> end else change y by <(xvelocity) * (-1)> end else change y by <(xvelocity) * (-1)> endIf it's too complicated just say so.
Offline
If this is just for ceilings (and floors) and walls then use this script:
when gf clicked forever change x by (xvel) if <touching [platform v]> change x by ((0) - (xvel)) set [xvel v] to ((xvel) / (3)) change x by (xvel) if <touching [platform v]> change x by ((0) - (xvel)) set [xvel v] to ((xvel) / (3)) change x by (xvel) if <touching [platform v]> change x by ((0) - (xvel)) set [xvel v] to ((xvel) / (3)) end end end change y by (yvel) if <touching [platform v]> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (3)) if <<(yvel) < (0)> and <key [up arrow v] pressed?>> //this is for jumping set [yvel v] to [whatever you want] else change y by (yvel) if <touching [platform v]> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (3)) change y by (yvel) if <touching [platform v]> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (3)) end end end end endSorry if this doesn't work.
Offline
TPAL125 wrote:
If this is just for ceilings (and floors) and walls then use this script:
when gf clicked forever change x by (xvel) if <touching [platform v]?> change x by ((0) - (xvel)) set [xvel v] to ((xvel) / (3)) change x by (xvel) if <touching [platform v]?> change x by ((0) - (xvel)) set [xvel v] to ((xvel) / (3)) change x by (xvel) if <touching [platform v]?> change x by ((0) - (xvel)) set [xvel v] to ((xvel) / (3)) end end end change y by (yvel) if <touching [platform v]?> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (3)) if <<(yvel) < (0)> and <key [up arrow v] pressed?>> //this is for jumping set [yvel v] to [whatever you want] else change y by (yvel) if <touching [platform v]?> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (3)) change y by (yvel) if <touching [platform v]?> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (3)) end end end endSorry if this doesn't work.
This is only for collision. Nothing else (besides the jumping. You need to know where jumping is.).
And just so you know, its's not me that came up with this script.
Fixed.
Offline
bullelk12 wrote:
Let me work this out.
it is very laggy online help!
Offline