Well i did have a tad bit of trouble it took me 20hrs But in the end i got there.
Explaintion: Well, at the start i was checking simply if it was more than the moving platform's X but that would still move even if i wasn't on the platform myself. A quick fix i came up with was to check if the two Xs were identical, again this worked BUT it didn't give me that 'range of movement' across the moving platform & i would only move with the platform IF the two Xs were the same NOT GOOD! So after a bit of thought i remembered my early(bad) coding experiences, one which was for collision, it had a IF to check if the x was more than a Number and less than a number.
Like
if x > 20 and x <40 then
collision
end
Really bad collision method BUT on a single block that if x > 20 and x< 40 is a good check. So i used that method i & came up with my own check which Now works amazing. Scrolling next then Enemies
then i think A public testing version i.e release.
-
« Nearly There, i hope. | New Idea to Add »
Moving Platforms...................... DONE!
@ 2008-10-27 – 00:06:20
0 Comments to Moving Platforms...................... DONE!
Related posts
-
My bad
on 2008-11-07 – 15:44:45 -
Camera System
on 2008-11-02 – 20:37:41 -
Yesss One down...... One to go :)
on 2008-10-30 – 19:24:25 -
Another Fantastic Update :D
on 2008-10-27 – 23:49:54 -
New Idea to Add
on 2008-10-27 – 10:59:01 -
Moving Platforms
on 2008-10-24 – 22:48:25 -
ALL Bugs gone :)
on 2008-10-24 – 15:10:52 -
1 bug fixed, another arises :(. KILL BUGS!
on 2008-10-23 – 15:45:25 -
Alot easier than i thought
on 2008-10-21 – 19:18:18 -
Jumping + Basic Moving Platforms Done
on 2008-10-20 – 20:53:45