wow

Support for version 4.9 and earlier.

Re: wow

Postby YoshiInAVoid » June 4th, 2011, 5:12 pm

NO$GBA has problems with the time, and PA_RandMinMax is based on time. Yeah, so it's the emulator that is just making the same numbers again and again... I have had this problem before. It should work fine on a DS, I do not have mine with me ATM to test it, but I am 99% sure that it will work.

Try with random spots, don't just try 1 all of the time, because in the emulator, it will not accept 1, but some numbers, I think 46 was one, do get picked.

Anyway I do not understand what you mean. If you just press Clear, you can try again, there is no need to reset the game.
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: wow

Postby Ruffsta » June 4th, 2011, 5:23 pm

even in the ds after hitting play over and over a couple of times 83 came up.. i'm gonna code in a few more boxes and then let ya know...


thank you again - i'll let ya know what happens after i have more boxes coded in :)
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby YoshiInAVoid » June 4th, 2011, 5:59 pm

i'll let ya know what happens after i have more boxes coded in

What do you mean? I have used a loop, so it will perform the same code for all of the spots. What do you mean by boxes?
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: wow

Postby Ruffsta » June 4th, 2011, 6:48 pm

room 3... bottom of code where you worked - that was just for box "1"

i've got 78 more to do :shock: .. so after they're all coded in i'll let ya know how all is going :)
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby YoshiInAVoid » June 4th, 2011, 8:34 pm

Yeah, that's what I ment, I edited your code in Room_3 so that, it would loop through from 0 to 79, and perform it for all of them.

Compile the code I sent you, everything works.
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: wow

Postby Ruffsta » June 4th, 2011, 9:53 pm

no, you did it just for the first square that if "1" was in any of the 20 drawn numbers...

ACT Room_3,---THIS IS JUST FOR THE FIRST SQUARE!!!!!
ACT Room_3,If (randomnumbers[0]== 1 || randomnumbers[1]== 1 || randomnumbers[2]== 1 || randomnumbers[3]== 1 || randomnumbers[4]== 1 || randomnumbers[5]== 1 || randomnumbers[6]== 1 || randomnumbers[7]== 1 || randomnumbers[8]== 1 || randomnumbers[9]== 1 || randomnumbers[10]== 1 || randomnumbers[11]== 1 || randomnumbers[12]== 1 || randomnumbers[13]== 1 || randomnumbers[14]== 1 || randomnumbers[15]== 1 || randomnumbers[16]== 1 || randomnumbers[17]== 1 || randomnumbers[18]== 1 || randomnumbers[19]== 1) && PA_GetSpriteAnimFrame(0,0) == 80
ACT Room_3,Set Sprite Frame 0;0;160
ACT Room_3,Set Variable hits;hits + 1
ACT Room_3,Else If PA_GetSpriteAnimFrame(0,0) == 0
ACT Room_3,Set Sprite Frame 0;0;240
ACT Room_3,End If

see?

so, all 80 boxes must be done the same way, (basically all 80 numbers)
ACT Room_3,---THIS IS JUST FOR THE FIRST SQUARE!!!!!
ACT Room_3,If (randomnumbers[0]== 1 || randomnumbers[1]== 1 || randomnumbers[2]== 1 || randomnumbers[3]== 1 || randomnumbers[4]== 1 || randomnumbers[5]== 1 || randomnumbers[6]== 1 || randomnumbers[7]== 1 || randomnumbers[8]== 1 || randomnumbers[9]== 1 || randomnumbers[10]== 1 || randomnumbers[11]== 1 || randomnumbers[12]== 1 || randomnumbers[13]== 1 || randomnumbers[14]== 1 || randomnumbers[15]== 1 || randomnumbers[16]== 1 || randomnumbers[17]== 1 || randomnumbers[18]== 1 || randomnumbers[19]== 1) && PA_GetSpriteAnimFrame(0,0) == 80
ACT Room_3,Set Sprite Frame 0;0;160
ACT Room_3,Set Variable hits;hits + 1
ACT Room_3,Else If PA_GetSpriteAnimFrame(0,0) == 0
ACT Room_3,Set Sprite Frame 0;0;240
ACT Room_3,End If
ACT Room_3,---THIS IS JUST FOR THE SECOND SQUARE!!!!!
ACT Room_3,If (randomnumbers[0]== 2 || randomnumbers[1]== 2 || randomnumbers[2]== 2 || randomnumbers[3]== 2 || randomnumbers[4]== 2 || randomnumbers[5]== 2 || randomnumbers[6]== 2 || randomnumbers[7]== 2 || randomnumbers[8]== 2 || randomnumbers[9]== 2 || randomnumbers[10]== 2 || randomnumbers[11]== 2 || randomnumbers[12]== 2 || randomnumbers[13]== 2 || randomnumbers[14]== 2 || randomnumbers[15]== 2 || randomnumbers[16]== 2 || randomnumbers[17]== 2 || randomnumbers[18]== 2 || randomnumbers[19]== 2) && PA_GetSpriteAnimFrame(0,1) == 81
ACT Room_3,Set Sprite Frame 0;1;161
ACT Room_3,Set Variable hits;hits + 1
ACT Room_3,Else If PA_GetSpriteAnimFrame(0,1) == 1
ACT Room_3,Set Sprite Frame 0;1;241
ACT Room_3,End If
ACT Room_3,---THIS IS JUST FOR THE THIRD SQUARE!!!!!
ACT Room_3,If (randomnumbers[0]== 3 || randomnumbers[1]== 3 || randomnumbers[2]== 3 || randomnumbers[3]== 3 || randomnumbers[4]== 3 || randomnumbers[5]== 3 || randomnumbers[6]== 3 || randomnumbers[7]== 3 || randomnumbers[8]== 3 || randomnumbers[9]== 3 || randomnumbers[10]== 3 || randomnumbers[11]== 3 || randomnumbers[12]== 3 || randomnumbers[13]== 3 || randomnumbers[14]== 3 || randomnumbers[15]== 3 || randomnumbers[16]== 3 || randomnumbers[17]== 3 || randomnumbers[18]== 3 || randomnumbers[19]== 3) && PA_GetSpriteAnimFrame(0,2) == 82
ACT Room_3,Set Sprite Frame 0;2;162
ACT Room_3,Set Variable hits;hits + 1
ACT Room_3,Else If PA_GetSpriteAnimFrame(0,2) == 2
ACT Room_3,Set Sprite Frame 0;2;242
ACT Room_3,End If
ACT Room_3,---THIS IS JUST FOR THE FOURTH SQUARE!!!!!
ACT Room_3,If (randomnumbers[0]== 4 || randomnumbers[1]== 4 || randomnumbers[2]== 4 || randomnumbers[3]== 4 || randomnumbers[4]== 4 || randomnumbers[5]== 4 || randomnumbers[6]== 4 || randomnumbers[7]== 4 || randomnumbers[8]== 4 || randomnumbers[9]== 4 || randomnumbers[10]== 4 || randomnumbers[11]== 4 || randomnumbers[12]== 4 || randomnumbers[13]== 4 || randomnumbers[14]== 4 || randomnumbers[15]== 4 || randomnumbers[16]== 4 || randomnumbers[17]== 4 || randomnumbers[18]== 4 || randomnumbers[19]== 4) && PA_GetSpriteAnimFrame(0,3) == 83
ACT Room_3,Set Sprite Frame 0;3;163
ACT Room_3,Set Variable hits;hits + 1
ACT Room_3,Else If PA_GetSpriteAnimFrame(0,3) == 3
ACT Room_3,Set Sprite Frame 0;3;243
ACT Room_3,End If

oh, and yeah i found a working number lol... "4" so, thank you for helping me :) now i just gotta finish all these and have a go at it :)
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby Ruffsta » June 4th, 2011, 10:09 pm

come to think of it - that's gonna be long...

k, hmm.. it's gotta search the 20 numbers, if the user selected them (yellow) - then change them to GREEN.. if the are not selected by the user (blue), then change them to RED

atm, the way i'm doing it is searching to see if any of the 80 numbers is in the drawn 20.. :(
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby JanMulder » June 4th, 2011, 10:19 pm

Try to use some loops and be clever in the use of variables.
here and yet not here
JanMulder
 
Posts: 728
Joined: December 30th, 2010, 3:08 pm

Re: wow

Postby Ruffsta » June 4th, 2011, 10:26 pm

80 loops or 80 of the following are the same thing.. still gonna be long..

ACT Room_3,If (randomnumbers[0]== 1 || randomnumbers[1]== 1 || randomnumbers[2]== 1 || randomnumbers[3]== 1 || randomnumbers[4]== 1 || randomnumbers[5]== 1 || randomnumbers[6]== 1 || randomnumbers[7]== 1 || randomnumbers[8]== 1 || randomnumbers[9]== 1 || randomnumbers[10]== 1 || randomnumbers[11]== 1 || randomnumbers[12]== 1 || randomnumbers[13]== 1 || randomnumbers[14]== 1 || randomnumbers[15]== 1 || randomnumbers[16]== 1 || randomnumbers[17]== 1 || randomnumbers[18]== 1 || randomnumbers[19]== 1) && PA_GetSpriteAnimFrame(0,0) == 80
ACT Room_3,Set Sprite Frame 0;0;160
ACT Room_3,Set Variable hits;hits + 1
ACT Room_3,Else If PA_GetSpriteAnimFrame(0,0) == 0
ACT Room_3,Set Sprite Frame 0;0;240
ACT Room_3,End If

unless you know something i don't and care to show an example please?
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby YoshiInAVoid » June 4th, 2011, 10:33 pm

Ruffsta, that's not my code, this is:

Code: Select all
DSGMACTS
Loop YoshiInAVoid;1;80
If PA_GetSpriteAnimFrame(0,YoshiInAVoid-1) == YoshiInAVoid+79
If (randomnumbers[0]== YoshiInAVoid || randomnumbers[1]== YoshiInAVoid || randomnumbers[2]== YoshiInAVoid || randomnumbers[3]== YoshiInAVoid || randomnumbers[4]== YoshiInAVoid || randomnumbers[5]== YoshiInAVoid || randomnumbers[6]== YoshiInAVoid || randomnumbers[7]== YoshiInAVoid || randomnumbers[8]== YoshiInAVoid || randomnumbers[9]== YoshiInAVoid || randomnumbers[10]== YoshiInAVoid || randomnumbers[11]== YoshiInAVoid || randomnumbers[12]== YoshiInAVoid || randomnumbers[13]== YoshiInAVoid || randomnumbers[14]== YoshiInAVoid || randomnumbers[15]== YoshiInAVoid || randomnumbers[16]== YoshiInAVoid || randomnumbers[17]== YoshiInAVoid || randomnumbers[18]== YoshiInAVoid || randomnumbers[19]== YoshiInAVoid)
Set Sprite Frame 0;YoshiInAVoid-1;YoshiInAVoid+159
Set Variable hits;hits + 1
Else
Set Sprite Frame 0;YoshiInAVoid-1;YoshiInAVoid+239
End If
End If
End Loop


Sorry about the variable name, it was the only thing I could think of.

I worked hard on this, did you even download it?
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: wow

Postby Ruffsta » June 4th, 2011, 10:37 pm

i opened the wrong zip LOL

sorry
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby YoshiInAVoid » June 4th, 2011, 10:40 pm

Yeah, I just downloaded it to check and I was like WTF??? I uploaded the right one.

But it's a simple mistake to make ;)

So does it work how you want it to?
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: wow

Postby Ruffsta » June 4th, 2011, 10:43 pm

yes, thank you... only thing i have to do is space the numbers out a lil but yeah so far that i can see works right, thank you very much - give me a few minutes to go over it and what not. thank you again

EDIT:
Create Sprite 0;Row1;Sprite_1;16;16;7+(Row1*16);6;0

oh wow, i never would have thought of doing it that way.. pretty neat actually! Image
Last edited by Ruffsta on June 4th, 2011, 10:46 pm, edited 1 time in total.
Ruffsta
 
Posts: 44
Joined: March 3rd, 2011, 1:29 pm

Re: wow

Postby YoshiInAVoid » June 4th, 2011, 10:44 pm

Your welcome, as I previously said, I am happy to help with any other part as well if you have problems with it.

-Good luck
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Previous

Return to DSGM 4.9

Who is online

Users browsing this forum: No registered users and 1 guest