Like, I want to get a sprite to go into a building when I click on the door/press the up key above the door. I don't care if I have to click or press the up key, just tell me whichever one is easier to make. I also turned the buildings into sprites, in case that helps.
Offline
This seems to belong in Help with Scripts, so I will report it to get moved
when [sprite (whatever one is the outside of the building v] clicked switch to costume [whatever one is inside the building v]
Offline
Thanks, I'll try it out.
Offline
i suggest you make the door a sprite too.
for the character:
when gf clicked forever if <<touching [door v]?> and <key [up arrow v] pressed?>> switch to costume [going through door v] wait (1) secs hide end endfor the door:
when gf clicked forever if <<touching [character v]?> and <key [up arrow v] pressed?>> switch to costume [open v] wait (1) secs hide end endfor the building:
when gf clicked forever if <<([costume # v] of [door v]) = [2]>> //or whatever wait (1) secs hide switch to costume [inside v] end endthis is running upon the assumption that you want a 1 second break between scenes (i.e. inside and outside). if so,
when gf clicked forever if <<([costume # v] of [door v]) = [2]>> //or whatever, again switch to background [change_scene v] //which is black or whatever you like wait (1) secs switch to background [(whatever) v] end endhopefully this isn't too complicated.
Offline
funelephant wrote:
This seems to belong in Help with Scripts, so I will report it to get moved
when [sprite (whatever one is the outside of the building v] clicked switch to costume [whatever one is inside the building v]
well, yes. but up arrow needs to be the option. when your not using it, it should look like this:
when [sprite (whatever one is the outside of the building) v] clicked if <touching [door v]?> switch to costume [whatever one is inside the building v] endso yeah. happy scratchin'
Last edited by ty44 (2012-04-01 14:48:18)
Offline