Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [make a create event for the following]
- attem=0
- num1=round(random_range(3,20))
- num2=round(random_range(3,23))
- num1S=string(num1)
- num2S=string(num2)
- answer=num1+num2
- questiontext="what is "+num1S+"+"+num2S;
- [make a drop and drag draw event]
- and make a draw text value thing
- with the value of question text
- [put the following in a step event]
- with(whatever you called your input box object){
- var a =text
- }
- attem=a
- [put the following in a key pressed enter event]
- if(attem==string(answer)){
- [add a positive effect on the player for this one]
- num1=round(random_range(3,20))
- num2=round(random_range(3,23))
- num1S=string(num1)
- num2S=string(num2)
- answer=num1+num2
- anstext="what is "+num1S+"+"+num2S;
- }
- else if(attem!=string(answer)){
- [add a negative effect on the player for this one]
- num1=round(random_range(3,20))
- num2=round(random_range(3,23))
- num1S=string(num1)
- num2S=string(num2)
- answer=num1+num2
- anstext="what is "+num1S+"+"+num2S;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement