#-------------------------------------------------------------------------- # * 1 Step Forward #-------------------------------------------------------------------------- def move_forward case @direction when 2 move_down(false) when 3 move_lower_left when 4 move_left(false) when 5 move_upper_left when 6 move_right(false) when 7 move_lower_right when 8 move_up(false) when 9 move_upper_right end end def turn_right_90 case @direction when 2 turn_left when 3#lower left turn_upper_left when 4 turn_up when 5#upper left turn_upper_right when 6 turn_down when 7#lower right turn_lower_left when 8 turn_right when 9#upper right turn_lower_right end end #-------------------------------------------------------------------------- # * Turn 90° Left #-------------------------------------------------------------------------- def turn_left_90 case @direction when 2#down turn_right when 3#lower left turn_lower_right when 4#left turn_down when 5#upper left turn_lower_left when 6#right turn_up when 7#lower right turn_upper_right when 8#up turn_left when 9#upper right turn_upper_left end end #-------------------------------------------------------------------------- # * Turn 180° #-------------------------------------------------------------------------- def turn_180 case @direction when 2 turn_up when 3#lower left turn_upper_right when 4 turn_right when 5#upper left turn_lower_right when 6 turn_left when 7#lower right turn_upper_left when 8 turn_down when 9#upper right turn_lower_left end end

def move_backward # Remember direction fix situation last_direction_fix = @direction_fix # Force directino fix @direction_fix = true # Branch by direction case @direction when 2 move_up(false) when 3 move_upper_right when 4 move_right(false) when 5 move_lower_right when 6 move_left(false) when 7 move_upper_left when 8 move_down(false) when 9 move_lower_left end # Return direction fix situation back to normal @direction_fix = last_direction_fix end #-------------------------------------------------------------------------- # * 1 Step Forward #-------------------------------------------------------------------------- def move_forward case @direction when 2 move_down(false) when 3 move_lower_left when 4 move_left(false) when 5 move_upper_left when 6 move_right(false) when 7 move_lower_right when 8 move_up(false) when 9 move_upper_right end diagonal_graphic end def turn_right_90 case @direction when 2 turn_left when 3#lower left turn_upper_left when 4 turn_up when 5#upper left turn_upper_right when 6 turn_down when 7#lower right turn_lower_left when 8 turn_right when 9#upper right turn_lower_right end end #-------------------------------------------------------------------------- # * Turn 90° Left #-------------------------------------------------------------------------- def turn_4 case @direction when 3#lower left turn_down when 5#upper left turn_left when 7#lower right turn_right when 9#upper right turn_up end end def turn_left_90 case @direction when 2#down turn_right when 3#lower left turn_lower_right when 4#left turn_down when 5#upper left turn_lower_left when 6#right turn_up when 7#lower right turn_upper_right when 8#up turn_left when 9#upper right turn_upper_left end end #-------------------------------------------------------------------------- # * Turn 180° #-------------------------------------------------------------------------- def turn_180 case @direction when 2 turn_up when 3#lower left turn_upper_right when 4 turn_right when 5#upper left turn_lower_right when 6 turn_left when 7#lower right turn_upper_left when 8 turn_down when 9#upper right turn_lower_left end end

calvin624

Tutorial Wizardmaster

Tutorial Wizardmasterprofile

6792302009-10-101985-03-0834956

XAS ABS

Hey everyone, I installed the updated version of the Terrain script and I keep on getting the error "Script 'TERRAIN' line 99: NameError Occurred. uninitialized constant XAS_ACTION::OLDDIR" - I dunno if it's something I'm doing incorrectly or what.

unrivaledneo

Active Member

Active Memberprofile

102372010-05-22170

Toez

Nice work, havnt tested it yet but im sure it good as always will let ya know if i find any bugs. WIth this, XAS becoming a great shoot em up :p now if only i can make a realistic shotgun n machine gun :p

supercow

||||||||||

||||||||||profile

4042172010-08-201984-10-1034660

woohooo what an amazing adition hackel to the rescue now all i need is the diagonal pict for all neccesary spell btw, i dont know if this the place to ask, its aboutdirset = [1,2,3,4,5,6,7,8,9]before it was dirset = [1,2,3,4,6,7,8,9] can i ask what is the [5] for? stationery ?sorry if i ask too much