Posted: Thu Mar 22, 2012 7:49 pm
No, I just got bored of recording the amount of levels. But I'm about halfway done now. I think I underestimated how long it would take to make Demo 4. Real life has been really getting in the way recently.
Anyways, someone asked about how to make Evil Toaster 5's ice. Here's the pseudo-code which you put into the player's step event. You have your work set out for you:
Anyways, someone asked about how to make Evil Toaster 5's ice. Here's the pseudo-code which you put into the player's step event. You have your work set out for you:
Code: Select all
if at relative position (0,1) there is object Ice
if icedirn is equal to 0
if icerun is equal to 0
if relative position (icespeed,0) is collision free for Only solid objects
jump relative to position (icespeed,0)
else
if relative position (icespeed+1,0) is collision free for Only solid objects
jump relative to position (icespeed+1,0)
if relative position (1,1) is collision free for Only solid objects
jump relative to position (1,1)
if icedirn is equal to 180
if icerun is equal to 0
if relative position (-icespeed,0) is collision free for Only solid objects
jump relative to position (-icespeed,0)
else
if relative position (-icespeed-1,0) is collision free for Only solid objects
jump relative to position (-icespeed-1,0)
if relative position (-1,1) is collision free for Only solid objects
jump relative to position (-1,1)
if relative position (5,0) is not collision free for Only solid objects
set variable icedirn to 90
set variable icerun to 0
set variable icespeed to 4
if relative position (-5,0) is not collision free for Only solid objects
set variable icedirn to 90
set variable icerun to 0
set variable icespeed to 4
if at relative position (0,1) there is not object Ice
set variable icedirn to 90
set variable icerun to 0
set variable icespeed to 4