hey all i have two questions 1 i was wondering if you could help me how would i be able to link my sprites together i have three cars i want to join them together so they move as one
2 And i want to join my enemy sprite onto the cars so that when they move he follows and stays on the cars and dosnt move how would i do that any help would be greatly appreciated thank you.
Offline
1. You could just use the same script for each car
2. Use a script like this for the enemies:
forever go to x: ([x position v] of [car v]) y: ([y position v] of [car v]) end
Offline
PhirripSyrrip wrote:
1. You could just use the same script for each car
2. Use a script like this for the enemies:forever go to x: ([x position v] of [car v]) y: ([y position v] of [car v]) end
For the enemies, you would prefer something like
when gf clicked forever point towards [car v] move [3] steps end
Last edited by jji7skyline (2012-05-01 20:09:06)
Offline
Hi guys im having problems with some coding could you help
I have a boss sprite im trying to say when the boss is defeated the item you need to pass the level appears what script would i need to make that happen
thank you:)
Offline
wildbilla wrote:
Hi guys im having problems with some coding could you help
I have a boss sprite im trying to say when the boss is defeated the item you need to pass the level appears what script would i need to make that happen
thank you:)
Create a variable so that when the boss is defeated, it will set "bossIsDefeated?" to "true":
when gf clicked forever if <(bossIsDefeated?) = [true]> broadcast [show item you need v] and wait end Your script for next level hereFor the item you need to show, use this script:
when I receive [show item you need v] showHope it helps. I know there are more efficient scripts but I'll keep it simple. Not good for a 1s1s game though.
Offline