Page 1 of 1
Game Code Issue
Posted: Fri Sep 10, 2010 7:47 pm
by J. Baker
The following code works except if
BoardPush does not equal 3. It just pauses in the
AnimateSprite() instead of clipping it. It's the
Else that it doesn't seem to get. If I remove lines 2 and 4 it works. But not like I want it to. I also can not get
And to work in games either but that's a whole different issue.
Code: Select all
If KeyboardPushed(#PB_Key_Right) Or JoystickAxisX(0) = 1
If BoardPush = 3
AnimateSprite(49, 128, 128, 4, 1, 14, 1)
EndIf
Else
ClipSprite(49, 256, 384, 128, 128)
EndIf
Re: Game Code Issue
Posted: Fri Sep 10, 2010 8:55 pm
by J. Baker
I got it. I swear, I can have an issue drive me crazy for days. As soon as I ask on the forum, I figure it out.
Code: Select all
If KeyboardPushed(#PB_Key_Right) Or JoystickAxisX(0) = 1
If BoardPush = 3
AnimateSprite(49, 128, 128, 4, 1, 14, 1)
Else
ClipSprite(49, 256, 384, 128, 128)
EndIf
EndIf
Re: Game Code Issue
Posted: Sat Sep 11, 2010 2:45 am
by Rook Zimbabwe
Small reccomend you usse the numpad or the QWEASDZXC (for left handed peeps)
Re: Game Code Issue
Posted: Sat Sep 11, 2010 3:07 am
by J. Baker
Rook Zimbabwe wrote:Small reccomend you usse the numpad or the QWEASDZXC (for left handed peeps)
Good recommendation, will do.

Re: Game Code Issue
Posted: Sat Sep 11, 2010 4:52 am
by PB
> I can have an issue drive me crazy for days. As soon as I ask on the forum, I figure it out
So true! It's happened to me so often now, that sometimes I just ask
on the forums immediately so I don't waste days trying to work it out.
There's definitely something about asking the question that makes you
work out what you've done wrong. Someone in the forums had a phrase
for it, but I can't remember what it is right now.
Re: Game Code Issue
Posted: Sat Sep 11, 2010 5:03 am
by J. Baker
PB wrote:> I can have an issue drive me crazy for days. As soon as I ask on the forum, I figure it out
So true! It's happened to me so often now, that sometimes I just ask
on the forums immediately so I don't waste days trying to work it out.
There's definitely something about asking the question that makes you
work out what you've done wrong. Someone in the forums had a phrase
for it, but I can't remember what it is right now.
Maybe I should take more breaks. An over-worked mind can make mistakes easily. But good idea, next time I'll ask sooner.

Re: Game Code Issue
Posted: Sat Sep 11, 2010 5:15 am
by PB
Re: Game Code Issue
Posted: Sat Sep 11, 2010 5:25 am
by J. Baker
LOL, that's actually good practice. Since I don't have a rubber duck, I wonder if "crazy dog who pees on my floor from time to time debugging" will work the same.

Re: Game Code Issue
Posted: Thu Sep 16, 2010 2:48 am
by Nituvious
J. Baker wrote:
LOL, that's actually good practice. Since I don't have a rubber duck, I wonder if "crazy dog who pees on my floor from time to time debugging" will work the same.

I used to do this with my Itty Bitty Shitty Kitty(he used to fall into the toilet a lot..), but he has been missing for several weeks now

Re: Game Code Issue
Posted: Thu Sep 16, 2010 4:50 am
by J. Baker
Nituvious wrote:J. Baker wrote:
LOL, that's actually good practice. Since I don't have a rubber duck, I wonder if "crazy dog who pees on my floor from time to time debugging" will work the same.

I used to do this with my Itty Bitty Shitty Kitty(he used to fall into the toilet a lot..), but he has been missing for several weeks now

LOL but I'm sorry to hear your cat is missing.