Hi, i am having to do a scratch project in my ICT GCSE however i am a bit of newbie when it comes to scratch.
My problem is that i have to make a set of criteria of what my game will be like and i have said that i want the game to have a character selection screen that allows the user to pick from a male character and a female character. That is the easy part.
However i have three levels in my game and i was wondering if i would be able to copy and paste the script from the male character into the female characters script with a couple of minor changes? or would i have to do two seperate scripts? I am on a time limit (20 hours) however and i am not the quickest on scratch so i doubt i would be able to do two seperate main character scripts.
Any help offered would be greatly appreciated.
Brayney
Offline
Based on what the user has chosen you could do something like this:
when gf clicked set [gender v] to [boy] forever if <key [Left Arrow v] pressed?> if <(gender) = [boy]> switch to costume [boy_left v] end if <(gender) = [girl]> switch to costume [girl_left v] end end if <key [Right Arrow v] pressed?> if <(gender) = [boy]> switch to costume [boy_right v] end if <(gender) = [girl]> switch to costume [girl_right v] end end
Offline
Magnie wrote:
Based on what the user has chosen you could do something like this:
when gf clicked set [gender v] to [boy] forever if <key [Left Arrow v] pressed?> if <(gender) = [boy]> switch to costume [boy_left v] end if <(gender) = [girl]> switch to costume [girl_left v] end end if <key [Right Arrow v] pressed?> if <(gender) = [boy]> switch to costume [boy_right v] end if <(gender) = [girl]> switch to costume [girl_right v] end end
or you could use :
when gf clicked forever if <key [left arrow v] pressed?> switch to costume [(join[(gender)][left])] end end
Last edited by TRocket (2012-02-08 15:28:51)
Offline
Thank you very much!
I have decided that it won't be too hard to make the character selection after all, I will just have to dedicate a couple of lessons to making the variables work.
Once again, thanks a million
Brayney
Offline