Flash PJ Game Demo updated 11/01/06
Printed From: Pixel Joint
Category: The Lounge
Forum Name: Programming
Forum Discription: Game programmers unite!
URL: https://pixeljoint.com/forum/forum_posts.asp?TID=2573
Printed Date: 24 April 2026 at 12:51am
Topic: Flash PJ Game Demo updated 11/01/06
Posted By: kwigbo
Subject: Flash PJ Game Demo updated 11/01/06
Date Posted: 09 July 2006 at 7:46pm
http://www.kwigbo.com/upload/tbwRun/PlatformTest/platformTest.html - - This demo requires the flash 9 player
Demo Controls
Space(jump)
Down(crouch/slide)
Left(walk)
Right(walk)
Game Engine Check List
Scrolling
horizontal scrolling ---- done
verticle scrolling ---- done
Collision Detection
Floor ---- done
Walls ---- not done
Ceiling ---- not done
45 degree angle ---- not done
Adding Sprites
Playable character ---- done
Non Playable Characters ---- not done
enemies ---- not done
collectables ---- not done
Layers
ForeGround ---- not done
Middle ---- done
Background ---- not done
Map Editor
Working
*Bug fix: Landing bounce
*Bug fix: Pogo Stick and infinite jump
------------- http://www.kwigbo.com">
|
Replies:
Posted By: jalonso
Date Posted: 09 July 2006 at 11:22pm
Good to hear from you, I figured your new son was taking up all your time
------------- http://www.pixeljoint.com/forum/forum_posts.asp?TID=9378&FID=6&PR=3 - PJs FAQ <•> http://www.pixeljoint.com/forum/forum_topics.asp?FID=6 - Sticky Reads
|
Posted By: Larwick
Date Posted: 10 July 2006 at 4:03am
Hurrah kwigbo is still here. Neway, good job.
-------------
http://larw-ck.deviantart.com">
|
Posted By: Sejaa
Date Posted: 10 July 2006 at 1:08pm
Yey its back in business i wondered whered youd gone im glad your back cant wait for the demo 
|
Posted By: kwigbo
Date Posted: 10 July 2006 at 5:25pm
I just built a spriteLoader/animator class. I can load in sprite sheets rip them apart and animate them. This means all sprite graphics for the game can be loaded externally. Sprite frame speed can also be set through the xml it is set on a timer so it remains independent of the frame rate of the flash movie. Next step is the sprite movement so that update should be more fun.
P.S. Thanks for the warm welcome back.
------------- http://www.kwigbo.com">
|
Posted By: Demon
Date Posted: 10 July 2006 at 5:27pm
Kool, nice to see the flash version get on its feet again! ps: I couldnt see anything when I followed your link kwigbo.
------------- "At least we killed some boredom..." - Death Note.
|
Posted By: kwigbo
Date Posted: 10 July 2006 at 5:54pm
Sorry I forgot. You must have the new flash player 9 to be able to view the progress of the game.
http://www.adobe.com/products/flashplayer/ - Download it here
------------- http://www.kwigbo.com">
|
Posted By: Sejaa
Date Posted: 11 July 2006 at 8:23am
|
thanks for the link and clever thingymabob ;)
|
Posted By: kwigbo
Date Posted: 15 July 2006 at 10:49am
Here is a little update. I linked the animation with the key presses Space(jump) Down(crouch) Left(walk) Right(walk). Next demo will have some movement I should have that done today at the latest tommorrow.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 16 July 2006 at 8:04am
I just added some simple movement. I'm working on the jump next. Also you might notice the red when he moves left. I am aware of that issue and i'm trying to figure it out. Any comments would be helpful.
------------- http://www.kwigbo.com">
|
Posted By: Lawrence
Date Posted: 16 July 2006 at 8:21am
Good work so far. I think his acceleration is a bit off though. I can only explain it by drawing some rough graphs...
This is how it currently is:

This is how I think it should be:

-------------
|
Posted By: kwigbo
Date Posted: 16 July 2006 at 8:47am
|
Originally posted by Lawrence
I think his acceleration is a bit off though.
I tweaked the numbers a bit I had the acceleration set to low. Does that look any better?
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 16 July 2006 at 1:46pm
I just got rid of that red haze when you move left. (If anybody noticed)
------------- http://www.kwigbo.com">
|
Posted By: Monkey 'o Doom
Date Posted: 16 July 2006 at 2:09pm
What's the framerate? It seems a bit choppy.
------------- http://pixelmonkey.ensellitis.com">
RPG is numberwang.
|
Posted By: Demon
Date Posted: 16 July 2006 at 2:41pm
If you're running one direction and, while still running, you hold the opposite direction button, the sprite doesn't turn with the way it moves.
------------- "At least we killed some boredom..." - Death Note.
|
Posted By: Shark
Date Posted: 16 July 2006 at 3:46pm
i hate the acceleration, it may be realistic but it just will annoy me during the game. I also hate that when ur sliding it takes ages to turn the other way.
Great to have you back and working on this :D
------------- Snark, we love yuu.
|
Posted By: kwigbo
Date Posted: 16 July 2006 at 4:09pm
|
Originally posted by Monkey 'o Doom
What's the framerate? It seems a bit choppy.
*Fixed
I set the framerate to 24 it was at 10 before whoops.
Originally posted by Demon
If you're running one direction and, while still running, you hold the opposite direction button, the sprite doesn't turn with the way it moves.
*Fixed
I didnt notice that when I fixed the red haze but the red haze fix caused that. I think I got it right now.
Originally posted by Shark
I hate the acceleration, it may be realistic but it just will annoy me during the game. I also hate that when ur sliding it takes ages to turn the other way.
Great to have you back and working on this :D
The acceleration can be altered depending on the sprite. Right now I'm making controls that will control all sprites. So I will be able to create a new sprite with variables and images passed in through xml. And control it with key presses or predefined behaviors. All elements of physics will be adjustable.
About the turning the other way when sliding I'm not sure what you mean.
It's great to be back hopefully I can make some good progress this week cause the wife and kid are outta town till next weekend.
Thanks everyone for the feedback.
------------- http://www.kwigbo.com">
|
Posted By: Shark
Date Posted: 16 July 2006 at 4:29pm
Try running... sliding... then running in the other direction.
------------- Snark, we love yuu.
|
Posted By: kwigbo
Date Posted: 16 July 2006 at 4:52pm
I made a little change is that better shark?
------------- http://www.kwigbo.com">
|
Posted By: Lawrence
Date Posted: 16 July 2006 at 5:39pm
The sprite animation seems too fast. Is it on one 1 sprite-frame per overall frame? Also when your running, if you let go of all buttons he comes to a complete sudden stop. I think he should have a tiny bit of momentum left and de-accelerate.
-------------
|
Posted By: kwigbo
Date Posted: 16 July 2006 at 5:44pm
|
Originally posted by Lawrence
The sprite animation seems too fast. Is it on one 1 sprite-frame per overall frame? Also when your running, if you let go of all buttons he comes to a complete sudden stop. I think he should have a tiny bit of momentum left and de-accelerate.
I'm working on some kinda frame delay to adjust the animation speed. I'll also look into the sudden stop.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 23 July 2006 at 6:17pm
I just updated the movement. The jump is now working. (Space Bar) Please point out an glitches in the movement.
------------- http://www.kwigbo.com">
|
Posted By: Demon
Date Posted: 23 July 2006 at 6:23pm
Looking very nice, kiwgbo. I dont see any glitches, except for being able to keep jumping, but I would think that was intentional for now. Though it is fun to do. XD
------------- "At least we killed some boredom..." - Death Note.
|
Posted By: Larwick
Date Posted: 24 July 2006 at 3:54am
|
God that midair jumping is rather addictive. Lol. There should sooo be some low gravity level where he can do that...
But yeah, it's working well atm, keep it up :D
-------------
http://larw-ck.deviantart.com">
|
Posted By: Demon
Date Posted: 24 July 2006 at 4:15am
|
There should sooo be some low gravity level where he can do that... Well, you should be able to do something like that in the underwater level, kinda like Super Mario had. XD
------------- "At least we killed some boredom..." - Death Note.
|
Posted By: kwigbo
Date Posted: 25 July 2006 at 12:00pm
I didnt even notice the jump. But I'm gonna figure out how to turn it on and off so I can use it. I changed the physics variables a bit to make it more like swimming in mario. I'll upload those changes tonight. I'm glad everyone likes it. I'm just anxious to get back to the point I was at before. Next step is to start creating a world! I'm gonna use the brians ice world tiles for the demo.
------------- http://www.kwigbo.com">
|
Posted By: rabidbaboy
Date Posted: 27 July 2006 at 1:31am
dunno if anybody has noticed, but pressing spacebar repeatedly makes you fly. EDIT: ok, so the flying was noticed, my bad. btw, here's a game i made in flash, a platformer also: http://www.deviantart.com/view/33175055/ - http://www.deviantart.com/view/33175055/ maybe i could help?
|
Posted By: kwigbo
Date Posted: 27 July 2006 at 5:46am
|
Originally posted by rabidbaboy
btw, here's a game i made in flash, a platformer also: http://www.deviantart.com/view/33175055/ - http://www.deviantart.com/view/33175055/ maybe i could help?
That's a nice little game you have there. What actionscript version did you use to make it? The pj game is being developed in actionscript 3.0. So if you can write as 3.0 classes let me know.
------------- http://www.kwigbo.com">
|
Posted By: rabidbaboy
Date Posted: 27 July 2006 at 6:05am
err...no, sorry, only used MX.... sorry.^^;
------------- "baboy" is Filipino for "pig"
|
Posted By: Shark
Date Posted: 27 July 2006 at 6:12am
This is perfect!!
great work so far - the jumping is a little bit off though.
------------- Snark, we love yuu.
|
Posted By: kwigbo
Date Posted: 28 July 2006 at 2:09pm
|
Originally posted by Shark
This is perfect!!great work so far - the jumping is a little bit off though.
Yeah i'm still trying to nail down the jumping but right now I'm workin on building a world to throw him into.
------------- http://www.kwigbo.com">
|
Posted By: Souly
Date Posted: 28 July 2006 at 3:34pm
If you jump and you're not holding space. And then you push down. He slows down in mid-air.
------------- http://punky.ensellitis.com">
I am the jesus of PJ.
|
Posted By: Niss
Date Posted: 13 August 2006 at 7:33am
kwigbo>as3>?
Actionscript 3?
|
Posted By: Niss
Date Posted: 13 August 2006 at 7:42am
|
oh forget about that, I googled it but what IDE are you using for developement (them macrodobe product series becomes ridicilously complex).
|
Posted By: kwigbo
Date Posted: 13 August 2006 at 6:56pm
I'm using the Adobe Flash 9 AS3 preview and the Adobe Flex SDK. Depending on where I am.
------------- http://www.kwigbo.com">
|
Posted By: Niss
Date Posted: 16 August 2006 at 5:58am
|
And how do you like flex? I'm thinking of diving deeper into it but not sure yet...
|
Posted By: kwigbo
Date Posted: 17 August 2006 at 6:00am
I love actionscript 3.0 I think it is the best version of the language yet. Flex seems to be a little more strict than the flash 9 preview. That will probably change with the final release though. I myself prefer using the flash 9 preview. It's a more familiar enviroment and you don't need to compile the swf from the command line. I only use the flex SDK when I'm at work cause I'm on a mac and the preview is windows only. If you're interested I recommend checking out the link below. Lots of resources for getting started in AS 3.0.
http://www.kirupa.com/forum/showthread.php?t=223798 - AS 3.0 resources
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 18 August 2006 at 6:59pm
Well I have nothing new to show but I have been working. I just got done building a map editor so I don't have to write out the xml for the test world. So you can look forward to seeing pj in brians ice world soon.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 27 August 2006 at 5:08pm
Small update pj is in the world now i'm working on collision detection and scrolling. Check the link in the first post for the current demo.
** Another update horizontal scrolling. **
Still need to build the world as he walks.
------------- http://www.kwigbo.com">
|
Posted By: pixelblink
Date Posted: 27 August 2006 at 8:10pm
I'm currently trying to get some proper 32x32 tiles for IceWorld happening. Would be nice to see how it all fits in. Currently, he seems to be walking on almost nothing. Gotta get the multiple jump thing fixed too btw
-------------
|
Posted By: kwigbo
Date Posted: 28 August 2006 at 10:29am
|
Originally posted by pixelblink
I'm currently trying to get some proper 32x32 tiles for IceWorld happening. Would be nice to see how it all fits in. Currently, he seems to be walking on almost nothing. Gotta get the multiple jump thing fixed too btw
I havent done any collision detection yet i'm just workin on the scrolling.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 31 August 2006 at 7:19pm
I just added horizontal scrolling. The world is also built and destroyed as it scrolls. So the game only keeps track of whats in the visible area. Which will allow for much more goin on in the game because it's only dealing with whats on screen.
Whenever I update the demo I will update the date on this thread.
I need some help though. Does anyone see the red around PJ when he walks past certain tiles? If you see it or not please post and tell me what operating system you are using and what browser. Thanks.
------------- http://www.kwigbo.com">
|
Posted By: Larwick
Date Posted: 01 September 2006 at 5:39am
|
Looking good kwigbo!
I see the red, and i'm using windows XP with crappy AOL.
-------------
http://larw-ck.deviantart.com">
|
Posted By: Monkey 'o Doom
Date Posted: 01 September 2006 at 6:47am
|
I see the red, and I've got Windows XP with IE6.
EDIT: I see the red in Firefox, too.
------------- http://pixelmonkey.ensellitis.com">
RPG is numberwang.
|
Posted By: kwigbo
Date Posted: 01 September 2006 at 7:03am
Anyone out there on a mac wanna check it out? Jalonso your on a mac right? I can check it out at work next tuesday but I'd like to know before hand if its windows only problem. I don't think the mac flash player is having the same problem. I have been in contact with adobe about the issue. It didnt show up till I set a mask on the level to section off the screen. I ran across it before when I was building the sprite but I got around it. In the mean time i'll try and get it do disapear while I work on collision detection.
Stay tuned for more updates.
------------- http://www.kwigbo.com">
|
Posted By: Filax_666
Date Posted: 01 September 2006 at 8:41am
I use a Mac, so I guess I can check. I don't seem to be able to play
the game, though. I'm downloading Flash 9 right now and see if that's
what's missing.
EDIT: I can play the game now, but some funny things are happening...I see the ice tiles - that's supposed to happen, right? Curiously, the tiles seem to be part of the background, because they don't affect me in anyway - I walk in an invisible platform on the middle of the screen (a litle below maybe) and can't get on top of any of the tiles. Everything else is fine although the background is white (but that's temporary, I hope). Oh, and the little guy probably doesn't like borders because if i keep walking to one side he eventually gets out of the screen - but he comes back if I click in the opposite directional button.
Good news. I didn't see that red thing you were speaking of 
If all this is supposed to happen...I apologize. (I haven't read t he whole thread so I don't really know it's what's supposed to be like)
EDIT2: Plus, he's got the magical gift of eternal jumping. Better fix that, no? I forgot to mention that I'm using Firefox on Mac OS X 10.3.9
|
Posted By: kwigbo
Date Posted: 01 September 2006 at 10:21am
There is no collision detection so all the things you've mentioned are supposed to happen right now. But I guess that means that the red stuff is windows only. I will log a report with adobe about that and see if I can't find a work around till they fix it. Thanks for checkin it out for me.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 06 September 2006 at 6:28am
Hi,
I submitted a bug for this and it is already fixed. So it will be fixed
in the next release.
Thanks,
Subha
-----Original Message-----
From: kwigbo@kwigbo.com [mailto:kwigbo@kwigbo.com]
Sent: Friday, September 01, 2006 2:32 PM
To: Subha Subramanian
Subject: Re: Adobe Flash Player Feedback
I had sent you an fla reguarding a glitch with bitmapdata objects that
are transformed. The same thing happens when they are masked as well.
I found both these problems to show on the windows player and not the
mac.
issue : red tint on transparent pixels set with threshold when they
are transformed or masked.
attached : fla and loaded image that I used.
Please let me know if this is going to be fixed I seem to run across
it alot when working with bitmapdata.
Below is a link that shows the same issue on a larger scale.
http://www.kwigbo.com/upload/tbwRun/PlatformTest/platformTest.html
thanks Jedidiah Laudenslayer
kwigbo.com
Quoting Subha Subramanian <ssubrama@adobe.com>:
> Hi jedidiah,
>
>
>
> Thanks for the feedback about Adobe Flash Player. Could you please
send
[Hide Quoted Text]
> us the .fla file,.swf file? It would help us to investigate the issue
> further.
>
>
>
> Thanks a lot,
>
> Subha Subramanian
>
> ssubrama@adobe.com
>
> QE Engineer
>
> Adobe Systems Incorporated
>
>
------------- http://www.kwigbo.com">
|
Posted By: Souly
Date Posted: 13 September 2006 at 1:09am
When you push jump a bunch you just keep jumping.
------------- http://punky.ensellitis.com">
I am the jesus of PJ.
|
Posted By: Larwick
Date Posted: 13 September 2006 at 9:03am
|
Lol mister pointouttheobvious.
Looking good Kwigbo.
-------------
http://larw-ck.deviantart.com">
|
Posted By: Souly
Date Posted: 13 September 2006 at 11:15am
It's what I do. :B
------------- http://punky.ensellitis.com">
I am the jesus of PJ.
|
Posted By: kwigbo
Date Posted: 23 September 2006 at 5:18pm
Scrolling has been completed (crosses fingers) let me know if you find any bugs. Until I get the floor collisions done you can just keep hitting jump to get around the map.
**EDIT**
After I finish the floor collisions I will build a couple new test levels out of the other tile sets. The more tilesets we have the more test levels I can build. Then you can choose wich level you want to test the demo out in.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 28 September 2006 at 8:54am
No feedback? Any bugs in the scrolling? Missing tiles ect.
------------- http://www.kwigbo.com">
|
Posted By: Ensellitis
Date Posted: 28 September 2006 at 9:47am
not that i see
------------- ಠ_ಠ
There's a pubic hair on my keyboard. What the f**k?? I "mow the lawn" so it's not mine. Gross.
|
Posted By: kwigbo
Date Posted: 04 October 2006 at 8:06am
Ok floor collisions are done. They need a bit of refinment and I need to update the sprite sheet to get rid of the space between him and the floor. Then it's back to the map editor so we can get some of these other tile sheets in there.
------------- http://www.kwigbo.com">
|
Posted By: Souly
Date Posted: 04 October 2006 at 10:15am
If you're walking left and you push right barely he'll turn around and walk left.
------------- http://punky.ensellitis.com">
I am the jesus of PJ.
|
Posted By: kwigbo
Date Posted: 04 October 2006 at 10:58am
I'll look into that. Thanks souly.
------------- http://www.kwigbo.com">
|
Posted By: pixelblink
Date Posted: 04 October 2006 at 11:56am
yay for updates! I'm wokring on some more tiles so we can get a whole level done cheers bro
-------------
|
Posted By: kwigbo
Date Posted: 04 October 2006 at 1:42pm
Fixed the sprite sheets to stop the floating.
------------- http://www.kwigbo.com">
|
Posted By: Souly
Date Posted: 04 October 2006 at 2:00pm
Ok here's a more detailed description of the glitch. If your walking left, and barely press right and you still hold the left arrow. You'll keep walking right, even though your holding left.
Same thing happens if you go right and press left, you'll start going left even though you're hold down right.
------------- http://punky.ensellitis.com">
I am the jesus of PJ.
|
Posted By: kwigbo
Date Posted: 04 October 2006 at 6:55pm
I see exactly what you mean. Not high on the list of things to do but I will get to it. Thanks souly.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 29 October 2006 at 6:40pm
Small Update. I squashed a couple bugs(see the first post for details and the current demo). I am currently also working on the level editor and wall collisions. I am also trying to optimize the scrolling engine and the sprite animations. I have set aside time to work on this every week. Progress may be slow but it is steady.
------------- http://www.kwigbo.com">
|
Posted By: Vidd
Date Posted: 30 October 2006 at 11:47am
Why does his hair go forward when he jumps?
Should it not move back?
|
Posted By: kwigbo
Date Posted: 30 October 2006 at 1:13pm
|
Originally posted by Vidd
Why does his hair go forward when he jumps?
Should it not move back?
Sorry that's not my department i'm just using the graphics given. Your right though it does look wrong.
------------- http://www.kwigbo.com">
|
Posted By: kwigbo
Date Posted: 01 November 2006 at 1:01pm
I added the tiles that pixelblink made. So we have some finalized tiles in there. I used the same level layout and just swapped the tiles.
------------- http://www.kwigbo.com">
|
Posted By: pixelblink
Date Posted: 01 November 2006 at 11:48pm
Hey, I don't see the new tiles in place, just the old ones spaced out like they were 32x32... what gives?
-------------
|
Posted By: Monkey 'o Doom
Date Posted: 02 November 2006 at 4:49am
I dunnoo, here's what IE6 on windows XP shows:
------------- http://pixelmonkey.ensellitis.com">
RPG is numberwang.
|
Posted By: kwigbo
Date Posted: 02 November 2006 at 7:00am
|
Originally posted by pixelblink
Hey, I don't see the new tiles in place, just the old ones spaced out like they were 32x32... what gives?
Clear your browser cache that will fix it. Your still pickin up the old xml.
------------- http://www.kwigbo.com">
|
Posted By: eckered
Date Posted: 13 January 2007 at 12:14pm
|
not going to bother flicking through 3 pages of coments, but i found 3 glitches.
the wall on the left side is tiled right? you can jump on each individual tile, and keep bounching up on the tiles, like its just regular ground.
i also found that if you keep doing that, parts of the wall disipear.
lastly, where you start, if you just start walking to your right, he walks right over the gaps.
|
|