Announcement

User registrations are currently disabled due to high spam traffic.

#1 11/01/07 6:14am

wild8900
Regular Member
Registered: 03/12/06
Posts: 44

Tips for PSP Dev

I posted this a while ago on a different forum. It might have more use here:
This is ment for PSP but it can also help to speed up normal flash apps also.

When I first had the idea to make a game for the PSP flash player, I loaded a game I already had. I was disappointed because of the extremely low frame rate. This can be easily changed. With the help of Genesis F5, I got my game from about 4FPS to about 20+frames. These tips will hopefully speed up your game.


Almost never set a variable to the same value continuously! Too much of this can slow the app down.

Another important thing is using an extremely small amount of enterFrame events. They are CPU killers. Once again, if you can, try to keep the script in the single root frame.

Another bad CPU killer is hitTests. Only detect hits if its needed, for example, if the player is walking right, only detect in that direction if the button is down.

Avoid redundant conditional checks. In one section, you added "&& cut == false" on each conditional, when they were all part of one global conditional. If they reference the same conditional, globalize it.

When you're doing a lot of if / then conditionals, always opt for a switch statement if you're checking for a value. Switch statements are faster and make the code more readable.

Another killer that I found rather annoying was the slow down produced from alpha blending and scaling. Try to use it only when absolutely necessary.

Good luck with the games!

Offline

 

#2 11/01/07 12:12pm

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

what game engine did you use


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#3 11/01/07 2:29pm

Jake
Administrator
Registered: 29/04/06
Posts: 307

Re: Tips for PSP Dev

I would like to see the game you made we could do with some more games on the site, and at the moment I have revision to do for some exams at the end of the month so have no time to make any more games.

There are some very good tips there most of which I use myself when I make a game and they definitely do work.


moose

Offline

 

#4 12/01/07 3:44am

wild8900
Regular Member
Registered: 03/12/06
Posts: 44

Re: Tips for PSP Dev

I uploaded a demo a while ago to the server using the Smart FTP Client. Its in a folder titled wild8900. That ones kinda old now. Heres a little bit more up to date one.

http://www.fileupyours.com/files/69504/pspzelda6.swf

Offline

 

#5 14/01/07 11:12am

soulofdarkness
Moderator
From: Tallinn
Registered: 25/08/06
Posts: 401

Re: Tips for PSP Dev

Nice one! feels Just like a gba Zelda Game smile Why have you made all the weapons avaliable if you can't use them?
And why can't you enter the building?


I bite!
surprise

Offline

 

#6 15/01/07 4:09pm

dogydude
Hardcore Member
From: A cold cardboard box
Registered: 09/11/06
Posts: 163
Website

Re: Tips for PSP Dev

it's really good, good job!


COFFEE! hyper

Offline

 

#7 15/01/07 10:12pm

wild8900
Regular Member
Registered: 03/12/06
Posts: 44

Re: Tips for PSP Dev

soulofdarkness wrote:

Nice one! feels Just like a gba Zelda Game smile Why have you made all the weapons avaliable if you can't use them?
And why can't you enter the building?

I just havnt gotten around to coding it yet lol.
Ive been kinda lazy lately.

Offline

 

#8 26/02/07 11:57pm

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

wild8900 wrote:

I uploaded a demo a while ago to the server using the Smart FTP Client. Its in a folder titled wild8900. That ones kinda old now. Heres a little bit more up to date one.

http://www.fileupyours.com/files/69504/pspzelda6.swf

Where is this Smart FTP client thing


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#9 27/02/07 4:30pm

tallphil
Banned
From: UK
Registered: 29/04/06
Posts: 825
Website

Re: Tips for PSP Dev

wonderful thing, google smile


PSP Flash Gaming creator

Offline

 

#10 27/02/07 9:37pm

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

tallphil wrote:

wonderful thing, google smile

sorry if I bother you but is there one on this site?plz give a link


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#11 28/02/07 12:30am

tallphil
Banned
From: UK
Registered: 29/04/06
Posts: 825
Website

Re: Tips for PSP Dev

I'm so nice to you guys smile clicky clicky


PSP Flash Gaming creator

Offline

 

#12 28/02/07 12:32am

tallphil
Banned
From: UK
Registered: 29/04/06
Posts: 825
Website

Re: Tips for PSP Dev

Hmm, my brain is being a bit slow today - if you're planning to use Smart FTP to upload stuff to the user ftp account, you can't, because it's not enabled any more. You can, however, still upload stuff - just go to http://www.pspflashgaming.com/user_uploads/ and if you're a registered user and logged in, you'll have your own filespace...

There's a post on the homepage about it here and a forum post here


PSP Flash Gaming creator

Offline

 

#13 28/02/07 1:48am

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

Thanx 4 ur help dood


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#14 28/02/07 2:47am

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

Theres a problem..

I tried to upload some music I made for my psp and  it kept saying

Page cannot be displayed or some error thingy

do any of you know whats wrong??


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#15 28/02/07 8:19am

tallphil
Banned
From: UK
Registered: 29/04/06
Posts: 825
Website

Re: Tips for PSP Dev

yeah, it only allows .swf flash file uploads at the moment - i did this because i wanted to stop people uploading massive files and for security reasons.

Why do you want to upload music? Can't you just save it on your psp?


PSP Flash Gaming creator

Offline

 

#16 01/03/07 9:52pm

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

oh ok


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#17 02/04/07 1:15pm

JaXeRiR
Elite Moderator
From: Teh Interwebz
Registered: 25/03/07
Posts: 1925
Website

Re: Tips for PSP Dev

i dont know, but if u have some mp3 music, and u change the .mp3 to .swf and upload, u can still upload it right? i dont mean i would do that, but theres a problem with this 'upload only swf' thingy...


[url=http://profile.mygamercard.net/JaX3RiR][img]http://card.mygamercard.net/nxe/JaX3RiR.png[/img][/url]

Offline

 

#18 04/04/07 12:02am

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

JaXeRiR wrote:

i dont know, but if u have some mp3 music, and u change the .mp3 to .swf and upload, u can still upload it right? i dont mean i would do that, but theres a problem with this 'upload only swf' thingy...

lol, i was looking for one... you can even record ur voice....

PS: I posted this from my psp


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

#19 05/04/07 12:28pm

tallphil
Banned
From: UK
Registered: 29/04/06
Posts: 825
Website

Re: Tips for PSP Dev

i honestly can't remember how i wrote the protection in... If it's the most basic of protection and it just looks for a .swf in the filename, then yeah (and it's not hugely secure). I think i might have done a slightly more secure version though which uses other methods to check the filetype...


PSP Flash Gaming creator

Offline

 

#20 21/04/07 1:08am

pig1000
Member
Registered: 15/03/07
Posts: 6

Re: Tips for PSP Dev

Hey wild8900 i was just wondering if you were going to finish this project cuz i really think you should so many people would love it i know i would being a zelda fan myself i just hope you finish it. smile

Offline

 

#21 21/04/07 1:27am

kluttykid
Hardcore Member
From: a toilet
Registered: 11/01/07
Posts: 122
Website

Re: Tips for PSP Dev

yeh it would be pretty darn Kool!!! sonic
how the hell did sonic get in there??

Last edited by kluttykid (21/04/07 1:28am)


I got a NEW PC !!!!!!
( cause my other one broke) Now back to the comics.. I have to make everything all over again sad )

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson