Discuss Scratch

RickCall12
Scratcher
100+ posts

Governments won't change

Hello Scratchers,

I am currently developing a new, Cold War political simulation game; which will allow the player to play as either the United States of America or the Soviet Union during the period of the Cold War. The player will be able to economically, militarily and politically transform the political world, and maybe alter the events of that time to favour or disfavour your chosen country.

My current problem, is that the governments do not change when a variable is changed, instead they remain the same government they were last at. I have tried using variables, if USA Government = 1 Government = Demoracy (and so on…) I also tried using lists, If item 1 of USA government = Democracy, Government = Democracy (and so on…). But I was to change the variables or the replace the items in the list, the government does not change in anyway, just remains what it was.

Link to my project
drmcw
Scratcher
1000+ posts

Governments won't change

Where are you trying to change something? All I can see is setting USA to communism in the stage?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
OmnipotentPotato
Scratcher
1000+ posts

Governments won't change

Hey there, Rickcall12, I'm OmnipotentPotato and I think I found what's glitching your project. First of all, when you click on the stage, you will see that you have a block that makes the USA government communist. You need to get rid of that, or make it so that instead of turning item one into communist, it turns it into democracy.

The second problem that I found is on the actual democracy/communist sprite. If you look at the script that starts with “when I receive USA info,” you will note that all of the costumes it is supposed to be switching to don't exist. You can fix this by changing the costumes back to the correct name.

I think this will fix your problem! If it doesn't, or you just have another question, feel free to comment here or on my profile because I'd love to help! I really like the idea of your project and would love to see the completed project!

Last edited by OmnipotentPotato (May 8, 2014 13:09:39)

RickCall12
Scratcher
100+ posts

Governments won't change

OmnipotentPotato wrote:

Hey there, Rickcall12, I'm OmnipotentPotato and I think I found what's glitching your project. First of all, when you click on the stage, you will see that you have a block that makes the USA government communist. You need to get rid of that, or make it so that instead of turning item one into communist, it turns it into democracy.

The second problem that I found is on the actual democracy/communist sprite. If you look at the script that starts with “when I receive USA info,” you will note that all of the costumes it is supposed to be switching to don't exist. You can fix this by changing the costumes back to the correct name.

I think this will fix your problem! If it doesn't, or you just have another question, feel free to comment here or on my profile because I'd love to help! I really like the idea of your project and would love to see the completed project!

Oh my god, I am a blind man. Thank you so much, you truly are an OmnipotentPotatoe, I like potatoes.
OmnipotentPotato
Scratcher
1000+ posts

Governments won't change

RickCall12 wrote:

OmnipotentPotato wrote:

Hey there, Rickcall12, I'm OmnipotentPotato and I think I found what's glitching your project. First of all, when you click on the stage, you will see that you have a block that makes the USA government communist. You need to get rid of that, or make it so that instead of turning item one into communist, it turns it into democracy.

The second problem that I found is on the actual democracy/communist sprite. If you look at the script that starts with “when I receive USA info,” you will note that all of the costumes it is supposed to be switching to don't exist. You can fix this by changing the costumes back to the correct name.

I think this will fix your problem! If it doesn't, or you just have another question, feel free to comment here or on my profile because I'd love to help! I really like the idea of your project and would love to see the completed project!

Oh my god, I am a blind man. Thank you so much, you truly are an OmnipotentPotatoe, I like potatoes.
No problem! I've made errors similar to this…….multiple times.

Powered by DjangoBB