Announcement

User registrations are currently disabled due to high spam traffic.

#1 06/05/08 3:53am

jfig111
Addict
Registered: 29/10/07
Posts: 288

The Developer Help Thread

This will be the thread for all developer questions regarding actionscript or game making for PSP in general.

I'll edit this thread with questions and answers from and by people


-------------------------------------------------------------------
1.

From: Jfig111
Q: What script is used to upload a high score to pspflashgaming.com? Source, so I can add a scoreboard to my game?

A: -null
Answerer(LULZ): -null
-------------------------------------------------------------------


Games I support:
Super ShyGuy Universe, Loco Roco Bounce, Zuriki's Traveller, Teleport.

Offline

 

#2 08/05/08 2:43am

nothing
Moderator
Registered: 21/03/08
Posts: 389

Re: The Developer Help Thread

Good idea. How do you make Characters change sprites when they move (LS)? And, how so you make it so when you touch something it goes to the next screen?


[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]

I'm starting p22 again.

Offline

 

#3 08/05/08 3:01am

nickstewart
Hardcore Member
From: From New Orleans
Registered: 21/02/08
Posts: 86
Website

Re: The Developer Help Thread

like in my game, redman?


Visit [b]PSPNewb.com[/b]

btw, Hataz is banned big_smile

Offline

 

#4 08/05/08 3:07am

nothing
Moderator
Registered: 21/03/08
Posts: 389

Re: The Developer Help Thread

Yes.


[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]

I'm starting p22 again.

Offline

 

#5 08/05/08 3:14am

nickstewart
Hardcore Member
From: From New Orleans
Registered: 21/02/08
Posts: 86
Website

Re: The Developer Help Thread

i got that from jfg111, thats why he in credits. i am posting from me PSP so i cant type the code in correctly. when i get on me computer i will


Visit [b]PSPNewb.com[/b]

btw, Hataz is banned big_smile

Offline

 

#6 16/05/08 10:44pm

nothing
Moderator
Registered: 21/03/08
Posts: 389

Re: The Developer Help Thread

Ever get to your computer? Lol, I'll download jfig111's moovil source code and check it out.


[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]

I'm starting p22 again.

Offline

 

#7 17/05/08 1:12pm

der-zef-meister
Addict
From: barrow-in-furness
Registered: 21/01/07
Posts: 267

Re: The Developer Help Thread

Okay, make an mc for each action you want your guy to do (one for walking left, one for walking right, one for attacking or whatever). Then put each mc in an individual frame of a blank mc, so each action is on a different frame of the parent mc. Remember to put a "stop();" on each frame. Then in the actions of the parent mc, you tell it to play the corresponding frame when a certain key is pressed.

I have the code somewhere but I can't be bothered finding an upload site and explaining the whole thing. Just muck around with this and you'll get it to work.


The shadow of the wicker man is rising up again...

Offline

 

#8 17/05/08 1:22pm

jfig111
Addict
Registered: 29/10/07
Posts: 288

Re: The Developer Help Thread

Like:

if(Key.isDown(LEFT)){
this.gotoandplay(walking frame);
}


Games I support:
Super ShyGuy Universe, Loco Roco Bounce, Zuriki's Traveller, Teleport.

Offline

 

#9 17/05/08 2:19pm

Zuriki
Flash Dev (The Lazy One)
From: Manchester
Registered: 18/01/08
Posts: 755
Website

Re: The Developer Help Thread

How do I compress 4 MP3 files in a swf from 1.24MB to something around about 500KB?

That should be tough no?


[img]http://img134.imageshack.us/img134/9129/headerxt2.png[/img]
[url=http://zuriki.co.nr/project/traveller/][img]http://i28.tinypic.com/2vspafo.png[/img][/url]
[url=http://zuriki.co.nr]Zuriki - PSP Flash Games[/url]

Offline

 

#10 17/05/08 2:48pm

Dezerith
Moderator of Doom.
Registered: 27/07/07
Posts: 196
Website

Re: The Developer Help Thread

I've set up an inventory system for the game i'm making which consists of 5 slots - each slot can contain 1 collectable item. On the screen there is an item which, when collided with the player, adds a new item to slot 1. Each slot is instance named itemSlot1, itemSlot2 etc...

The code that is placed on the frame's action scipt box is as follows:

currentslotnum = 1;
function addToslot(item) {
    if (!item.found) {
        item._x = eval("itemSlot"+currentslotnum)._x;
        item._y = eval("itemSlot"+currentslotnum)._y;
        item.found = true;
        currentslotnum++;
    }
}

And the code that you can use in hitTests to add an item to slot one would be:
_root.addToslot (_root.item);

or

_root.addToslot (this);


In my flash document there is a part with water that the player can only swim in if it has collected the flippers. And if it doesn't have flippers, it splashes and you have to restart the level. I want some code that can determine whether or not an item is in either of the slots, so if the flippers are in the inventory he can swim and if they aren't, he can't.

Now here's the catch. The movement in the water uses different sprites to the movement on land. I need the code to make him go to certain frames in the MC when he is swimming.

The movement code in the MC is this:

    tick++;
    if (tick>4) {
if (Key.isDown(Key.RIGHT)) {
            this._x = this._x+32;
            this.gotoandplay(2);
            tick = 0;
        } else if (Key.isDown(Key.LEFT)) {
            this._x = this._x-32;
            this.gotoandplay(16);
            tick = 0;
        } else if (Key.isDown(Key.UP)) {
            this._y = this._y-32;
            this.gotoandplay(30);
            tick = 0;
        } else if (Key.isDown(Key.DOWN)) {
            this._y = this._y+32;
            this.gotoandstop(1);
            tick = 0;
        }
}

Help?


[img]http://i26.tinypic.com/28iys08.jpg[/img]
[img]http://www.resiststorage.org/images/blazebytedev53.png[/img]
[img]http://www.resiststorage.org/images/PSPflashForDezBzeByteDev4.png[/img]

Offline

 

#11 17/05/08 3:02pm

nothing
Moderator
Registered: 21/03/08
Posts: 389

Re: The Developer Help Thread

der-zef-meister wrote:

Okay, make an mc for each action you want your guy to do (one for walking left, one for walking right, one for attacking or whatever). Then put each mc in an individual frame of a blank mc, so each action is on a different frame of the parent mc. Remember to put a "stop();" on each frame. Then in the actions of the parent mc, you tell it to play the corresponding frame when a certain key is pressed.

I have the code somewhere but I can't be bothered finding an upload site and explaining the whole thing. Just muck around with this and you'll get it to work.

Thanks, but I'm pretty new to this. Do I have to make a seperate file? And, what's an mc? I'll try working on it. Studying Moovlin source code now so I might be able to figure it out, but it's all really confusing.


[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]

I'm starting p22 again.

Offline

 

#12 17/05/08 3:10pm

Dezerith
Moderator of Doom.
Registered: 27/07/07
Posts: 196
Website

Re: The Developer Help Thread

MC is a Movie Clip in flash. In LiveSwif they're called sprites.


[img]http://i26.tinypic.com/28iys08.jpg[/img]
[img]http://www.resiststorage.org/images/blazebytedev53.png[/img]
[img]http://www.resiststorage.org/images/PSPflashForDezBzeByteDev4.png[/img]

Offline

 

#13 17/05/08 3:30pm

nothing
Moderator
Registered: 21/03/08
Posts: 389

Re: The Developer Help Thread

If I use the timeline on the sprite making screen, It will work?
Oh okay figgering it out. just need the coding and stuff to study from. Also, on my second screen, the sprite at the bottom has that intstance name of ground, and the code should work, but my character always falls through. Help please? On the first frame it works perfectly.

Last edited by nothing (17/05/08 3:33pm)


[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]

I'm starting p22 again.

Offline

 

#14 17/05/08 4:31pm

69corvette
That one guy.
From: Not Palmdale, CA
Registered: 01/02/08
Posts: 280

Re: The Developer Help Thread

@zuriki theres a compression menu in flash if you right clcik on an mp3 in the library. Just right-click and go to properties and you can change the compression of the file.


[img]http://img221.imageshack.us/img221/8990/smallersigcopylb1.jpg[/img]

Offline

 

#15 17/05/08 5:16pm

jfig111
Addict
Registered: 29/10/07
Posts: 288

Re: The Developer Help Thread

The flash compresser is bad. Get dBpoweramp compresser, I got a 2 minute song down from 1.5mb to 142kb with fairly good quality.


Games I support:
Super ShyGuy Universe, Loco Roco Bounce, Zuriki's Traveller, Teleport.

Offline

 

#16 23/06/08 5:52am

nothing
Moderator
Registered: 21/03/08
Posts: 389

Re: The Developer Help Thread

Wow, i'm bringing back old threads, but I don't want this to die! And gusy, I thing I got the coding for the walking MC's. Looking b ack at those older posts, I feel so n00bish! Lol, look how far you guys brought me. I have to say, if I had any parent figures in Flash-ing, it would be Dez, jfig, Zuriki, and 69corvette. You guys are great!


[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]

I'm starting p22 again.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson