The Dink Network

Reply to Re: need some help

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 28th 2010, 06:53 PM
dinkdead.gif
Try using move_stop(), that might fix the hardness problem. You're also missing the semicolon at the end of the &location = sp_x(&current_sprite, -1) lines.
You don't actually need those lines apart from the first one, &location is set to the rock's position anyway. No difference, just unnecessary

The main problem is the extra closing bracket on line 22. The bit after that is never running if you're facing in direction 6.
(Edit: Not extra, just in the wrong place. Should be 3 at the end.)

About your testing, are you sure that the script never runs that part? Because if the rock is already at 400 then nothing will noticeably happen.
A good thing to do when testing scripts is stick lines in that tell you what is happening, for example
//stuff
say_stop("stuff just happened", 1);
say_stop("location is &location", 1);
//more stuff
say_stop("more stuff should've happened, I hope it did", 1);
//etc