so this is a side scroller game, keep in mind that it doest scrollY when jumping just player moves up, anyway the topsensors move down 10-y when it detects something but he still goes a bit through the roof a bit and then goes down, anyway to fix this? it's not a problem but I am a bit of a perfectionist...
Offline
Maybe make the top-sensor higher or taller? I can't really help without some script/a project to work with.
Offline
Try to do multi-tasking. If they are separate sprites, this will not work. It will lag and glitch really bad. If you know how to multi-task, use the 1s1s stamping method, if you don't give it a hat or something to make the top distinct. Then:
if<color [] is touching []?> change y by ((0) - (y vel)) set [yvel v] to (0) endIf no velocity:
if <touching [sensor is touching ceiling v]?> change y by (-1) if <touching [sensor is touching ceiling v]?> change y by (-1) if <touching [sensor is touching ceiling v]?> change y by (-1) if <touching [sensor is touching ceiling v]?> change y by (-1) end end end endAnd unwrap that until it runs perfectly. DO NOT use the repeat block or it will be painfully slow.
Last edited by chanmanpartyman (2012-03-31 12:03:57)
Offline
what.....?
ummm why would I give it a hat?
how would that script work? it is basically what I just said I did but didn't work
did you read my post properly?
this project has no velocity if that's what vel is....
I might as well post this.
when gf clicked if topsensors = 1 change y by -10 end
Offline
topsensors= variable btw
and as for w key or jumping, this next script complicatedly basic, it's change y by 1, wait ___ seconds and that repeated alot... and then vice versa but with - infront of 10 making sense?
Offline
Edited my post, check it out again (thought you wouldn't check back on my post)
Offline