Announcement

User registrations are currently disabled due to high spam traffic.

#1 03/06/09 4:17pm

g0ofygoober
Hardcore Member
Registered: 28/10/08
Posts: 194
Website

Game Development Help - Ask for help with Flash or Liveswf

This is a thread for people who want help with flash making games Just ask your question and someone will try to help.

Offline

 

#2 03/06/09 8:33pm

danomann
Addict
Registered: 12/08/08
Posts: 210
Website

Re: Game Development Help - Ask for help with Flash or Liveswf

yea i will help to lol smile


_root.gotoAndDie( [url]www.dako300.co.nr[/url] );

Offline

 

#3 04/06/09 2:36am

HankJFox
Hardcore Member
Registered: 21/04/09
Posts: 117

Re: Game Development Help - Ask for help with Flash or Liveswf

I can help too, heh.


Calamity RPG status: Back on track. Wonder where it leads.

Offline

 

#4 03/07/09 7:46pm

danomann
Addict
Registered: 12/08/08
Posts: 210
Website

Re: Game Development Help - Ask for help with Flash or Liveswf

i have a question how do you make a item recreate itself at a certan x and y


_root.gotoAndDie( [url]www.dako300.co.nr[/url] );

Offline

 

#5 03/07/09 9:35pm

Scruffy15
Anti-Christ
From: Facing The Plastic
Registered: 07/01/08
Posts: 871

Re: Game Development Help - Ask for help with Flash or Liveswf

yo how do you make a button combo at a certain x and y?
like...guitar hero, where you have to press the buttons at a certain time, and if you miss it, nothing happens, but if you press it, something happens?


I'm Infinite.

Offline

 

#6 04/07/09 1:32am

DarthFALCO
Regular Member
Registered: 13/05/07
Posts: 44
Website

Re: Game Development Help - Ask for help with Flash or Liveswf

@Scruffy15
I haven't tried this myself, but maybe you would use 'on (press)' on the movieclip that you want to test combined with X & Y coordinates.

An example of a Guitar Hero type game where things come down from the top of the screen to cross a certain line would probably work like this:
--------------------

on (press){
    if (this._y>200 && this._y<220){ // 200 is top and 220 is bottom of line
        // do something
    } else {
        // do something else
    }
}

--------------------

As I said though I haven't tried this at all myself, but it looks like it should work.

Offline

 

#7 04/07/09 2:28am

Scruffy15
Anti-Christ
From: Facing The Plastic
Registered: 07/01/08
Posts: 871

Re: Game Development Help - Ask for help with Flash or Liveswf

nice, nice. and thanks,
im trying to make MAH FiRST FLiPPiN' FLASH GAME, so i thought i'd ask a question or two to get started.


I'm Infinite.

Offline

 

#8 04/07/09 10:59am

sfc2000
PSP-RATOR <(@..@)>
Registered: 24/03/07
Posts: 1830

Re: Game Development Help - Ask for help with Flash or Liveswf

Offline

 

#9 04/07/09 10:26pm

Scruffy15
Anti-Christ
From: Facing The Plastic
Registered: 07/01/08
Posts: 871

Re: Game Development Help - Ask for help with Flash or Liveswf

DarthFALCO wrote:

@Scruffy15
I haven't tried this myself, but maybe you would use 'on (press)' on the movieclip that you want to test combined with X & Y coordinates.

An example of a Guitar Hero type game where things come down from the top of the screen to cross a certain line would probably work like this:
--------------------

on (press){
    if (this._y>200 && this._y<220){ // 200 is top and 220 is bottom of line
        // do something
    } else {
        // do something else
    }
}

--------------------

As I said though I haven't tried this at all myself, but it looks like it should work.

wait...will this work going upwards, like dance dance revolution? with the aarows going up?


I'm Infinite.

Offline

 

#10 05/07/09 12:10am

shinsukeito
The Explorer
From: Bloody Australia.
Registered: 23/09/08
Posts: 607

Re: Game Development Help - Ask for help with Flash or Liveswf

Schwheet! A ddr game!

I'm pretty sure that code will work but you have to change the y co-ordinates to a lower number, like around 30-ish, I think.

I've never coded a rythm game myself, so I'm sorry if I'm wrong. tongue

Oh yeah, by the way, does anyone know how to make a rpg-like speaking system?
I'm half-stuck on it...

Last edited by shinsukeito (05/07/09 12:11am)

Offline

 

#11 05/07/09 1:48am

DarthFALCO
Regular Member
Registered: 13/05/07
Posts: 44
Website

Re: Game Development Help - Ask for help with Flash or Liveswf

Yes, the code will work for up or down, it could also work for left or right if you changed it to checking the X coordinates instead of the Y.

All the codes doing is checking where the movieclip is when the mouse clicks on it, in this case it is checking that the MC is between 200 & 220 which is where it need to be if it is over the right line.

Of course you'd probably want to change the code to work on a key press in the enterFrame command (which is probably what I should have shown you) like this:
--------------------
onClipEvent (enterFrame){
    if (Key.isDown(Key.UP) && this._y>200 && this._y<220){
        // do something
    } else {
        // do something else
    }
}

Last edited by DarthFALCO (05/07/09 1:49am)

Offline

 

#12 05/07/09 2:31am

Scruffy15
Anti-Christ
From: Facing The Plastic
Registered: 07/01/08
Posts: 871

Re: Game Development Help - Ask for help with Flash or Liveswf

WOW!!
THANKS! big_smile


I'm Infinite.

Offline

 

#13 05/07/09 3:41am

keylinman
Moderator
Registered: 22/03/09
Posts: 328

Re: Game Development Help - Ask for help with Flash or Liveswf

i wana learn how 2 do all this kinda stuff


[url=http://profile.mygamercard.net/keylinman][img]http://card.mygamercard.net/aero/keylinman.png[/img][/url]

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson