Discussions
Activity
Sign In
blackhawx
Activity
Discussions
30
Comments
47
understanding what "return" does in demo 3 at some spots in the code
I just realized that return; is the same as making the item return undefined, which is is the same as saying it no longer exist which is what we want once the enemy goes off screen! still kinda odd how the .each loop will continue to spit out enemi…
Comment by
blackhawx
October 8
permalink
understanding what "return" does in demo 3 at some spots in the code
I know that is what "should" happen. But if you test it out yourself, and place return false there in your demo 3 game, you will see that the enemy ships will still continue to come out and then remove themselves from the DOM when the lea…
Comment by
blackhawx
October 5
permalink
understanding what "return" does in demo 3 at some spots in the code
I just tested out everything we talked about and now I understand that if we don't use return at all, it throws a null error. But here is the funny thing..when I use return false inside of the conditional statement, it works the same as return…
Comment by
blackhawx
October 3
permalink
understanding what "return" does in demo 3 at some spots in the code
I think I'm getting it now. we're not trying to abort the .each() function, we're simply aborting the current element that is in place, and the best way to do that is to use return; which then allows the .each() function to keep goin…
Comment by
blackhawx
October 3
permalink
understanding what "return" does in demo 3 at some spots in the code
ok so its trying to end the .each() function early based on a condition. Would "return false" produce the same intent/effect as having return;? Thanks
Comment by
blackhawx
October 3
permalink
having 2 playgrounds on the same page
Another possibly is instead of having 2 playgrounds, create 2 games within the same playground and set up major conditions that allow the player to play one game or the other within the same environment, or perhaps privlage to access game2 once they…
Comment by
blackhawx
October 1
permalink
Easiest way to do a smooth rapid fire with gameQuery?
Thanks again Selim! I also read up on your post here to make this solution work perfect for me... http://forum.gamequeryjs.com/discussion/27/keytracker-documentation-mouse-click-support/p1
Comment by
blackhawx
October 1
permalink
Easiest way to reset the playground and game without freshing the entire browser?
how do we return or execute clearScenegraph, and does is come with a callback function?
Comment by
blackhawx
September 28
permalink
IE9 browser testing is killing me with a unique bug...
I found the issue by continuously debugging my game with Google chrome's Developer tools! problem solved. Great game engine!
Comment by
blackhawx
September 20
permalink
How to detect if pauseGame() or resumeGame() is true or false outside of themselves?
Nevermind, I now understand that gamePause and gameResume are naturally associated to registerCallback()'s
Comment by
blackhawx
September 12
permalink
How to animate an item in the background across the screen only once
Nevermind, gQ gets better and better as I understand that I can stop or remove animations with the help of the jQuery API and looking at activities under firebug. I also now understand that gQ.ANIMATION_ONCE is for multi-frame animations. Also, wi…
Comment by
blackhawx
September 12
permalink
Thunderfight 20xx appears really smooth in IE9 and Chrome 21
Thunderfight 20xx, (using this game a benchmark) is also excellent when played on Opera 12.02 web browser. Firefox and Safari have some catching up to do when it comes to gaming...
Comment by
blackhawx
September 10
permalink
Thunderfight 20xx appears really smooth in IE9 and Chrome 21
Thank you Selim. I'll experiment with that advice. I got a feeling that IE9 and Chrome do have better hardware-accelerated features built in, but I can't prove that. Perhaps they will get better for FireFox and Safari over time. Thanks a…
Comment by
blackhawx
September 10
permalink
gameQuery on Google CDN
Thanks pronoyc for the good tip!
Comment by
blackhawx
September 6
permalink
how to move posx position when a new animation is used with the setAnimation() method
selim, you can delete this post if you want. It basically comes down to a design issue. I need to make sure my design demonsions are smart in size.
Comment by
blackhawx
September 4
permalink
How to properly load a callback once an animation is done (has completly ended)
I never thought of that. Thank you for that big tip!
Comment by
blackhawx
August 30
permalink
how to change background groups/sprites through a game?
I get it now, thanks!
Comment by
blackhawx
August 29
permalink
How to properly load a callback once an animation is done (has completly ended)
I added that to my animation - now the console.log loads the text when the DOM is ready (even earlier). This is what I have.... var bg = { ani1 : new $.gQ.Animation({imageURL: "http://dev.jquery/gamequery/mimages/bg1.png"}), ani2 …
Comment by
blackhawx
August 29
permalink
Question about pausing and resuming a game
Got it! $('#mbutton').toggle(function(e) {e.preventDefault();$.playground().pauseGame();},function(){$.playground().resumeGame();}); #mbutton being my anchor link.
Comment by
blackhawx
August 28
permalink
how to change background groups/sprites through a game?
So for example, when a new sprite or group is loaded towards the end of the level (the boss enemy), use the callback feature to then load a new background transition sprite? Also do you have API instructions on how to delete a group or sprite from …
Comment by
blackhawx
August 27
permalink
Taking advnatageof setAnimation with sprites
Thank you so much Selim! Also, is it possible to begin the animation on any other frame besides the first one of a multiple sprite image? I tried changing $("#multiOffsetHorizontal").setAnimation(1); to something like... $(&qu;…
Comment by
blackhawx
August 27
permalink
how to change background groups/sprites through a game?
Hi Selim, I still need help with this, specifically with what you mentioned above about a transition sprite. Thanks
Comment by
blackhawx
August 24
permalink
Taking advnatageof setAnimation with sprites
Selim do you have any examples online that specifically use setAnimation with $.gameQuery.ANIMATION_MULTI ? This way it can be visually clear to see how the 2 interact with each other? I looked through the demos that come with the 0.7 package and c…
Comment by
blackhawx
August 24
permalink
Taking advnatageof setAnimation with sprites
Comment by
blackhawx
August 23
permalink
thunderfight20xx missle lockup
Good call! Here is the counter fix I put in. I think it works! /*ASSOCIATE KEYDOWN WITH FIRING MISSILES*/ var IDCount = 0; $(document).keydown(function(e){ //if(!gamestate.gameOver && !gamestate.playerHit){ switch(e.keyCode){ case…
Comment by
blackhawx
August 23
permalink
how to change background groups/sprites through a game?
You mean something like this?... (orange sky with clouds in 4 sprite images...) If this is correct selim, how could I run this only twice or three times, then start a new background group of sprites?. the next group would look similar to this o…
Comment by
blackhawx
August 22
permalink
Is it possible to shorten jQuery.gameQuery.keyTracker
awesome - this appears to work! $.gQ.keyTracker
Comment by
blackhawx
August 22
permalink
FINAL BOSS
what does this part mean, specially the [0] player respawn()? wouldn't it be better to detect if the final boss was defeated? if($("#player")[0].player.respawn()){ and would this still be reliable in 0.7 of gameQuery? Thanks!
Comment by
blackhawx
August 20
permalink
Can we remove the position style from being dynamically inlined on the playground div element?
On a simular note, can we remove from being dynamically generated as a parent element around #startbutton ID. That can easily be implemented with CSS. And it may be the case where someone doesn't want the text to be centered, but position els…
Comment by
blackhawx
August 17
permalink
Question about animating Sprites
I changed the css to "top" instead of "left" to animate the stars up. It does work, but its not continuously connected. Any thoughts? Thanks
Comment by
blackhawx
August 16
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
blackhawx
Joined
August 10
Visits
44
Last Active
October 20
Roles
Member
Powered by Vanilla