ID:271257
 
How do I make it where if you step on a turf called "crack" it changes to a different icon_state, then if you step on it again you go back to the "start" turf.
Define an Entered() proc on the crack turf, checking if tit's icon state has changed or not.

If it has not changed, change the state.
If it has changed, Move() or directly change their loc back to the start turf.

Needed operators/procs: Entered(), if(), Move()

- GhostAnime
In response to GhostAnime
if isnt one of my strong points >_<
In response to King of Slimes
if(turf.icon_state=="Apple")  //if(A==B) meaning if turf.icon_state equals Apple, Do the following
world<<"Yum, apple!"
else //if the above statement was not true (A!=B)
world<<"Ewww"


if() does whatever is "underneath" it if it is true (if it equals to the value you entered).

- GhostAnime
In response to GhostAnime
Wait...

King Of Slimes, weren't you wanting to make a demo that was supposed to be good enough to pay for?

Its amazing that you could do that without knowing how to use if statements.

-KirbyAllStar
In response to KirbyAllStar
I didn't say I didnt know how, I merely said they arent my strong point.
In response to KirbyAllStar
I'm fairly sure that only extremely limited conditionals are required to allow for turing-completeness. In fact, you might not need any, if you've got the right type of 'jump' statement.

But yeah, you probably don't want to be teaching anyone the sort of code that would result. It'd be so ugly and unreadable that even the person writing it would probably hate it.
In response to King of Slimes
Oh, well ok then, good luck with your demo.

-KirbyAllStar
In response to King of Slimes
You aren't strong with one of the basic components of any programming language, yet you want to release a demo for money?