SRL Archive - Help and Support

Need help for flash game scripting.


Laimonas171

2013-01-23 17:43:02

Ok so I have one game like bubble shoot.
I need to score a lot of points.
bubbles disappear then are x3 or more. any ideas, how should i found where to shoot.

bottom two boobles bubbles at the bottom blue one is current bubble, green one is next bubble color.

I know it may looks silly to most of you guys.. But i have no idea how to find right target :? it shouldn't shoot at the top of bubbles of course..

xtrapsp

2013-01-23 19:03:01

You haven't explained it very well xD

Are you writing in AS 3, 2?

etc etc

Yago

2013-01-23 22:10:04

Or are you scripting the game in SIMBA?

NKN

2013-01-23 22:26:11

Get direction of pointer, which is where you start the ball position.

If over half of the game screen, add 1 to x, if less, -1 from x, if perfectly middle, add 0 to x.

Always subtract 1 to y.

It'll move up and up, and then check collision.

(I did a collision based game myself in Actionscript 3.)

Laimonas171

2013-01-24 07:16:29

From: xtrapsp
You haven't explained it very well xD

Are you writing in AS 3, 2?

etc etc

yeah probably my bad :D though it's like most of bubble shooter games. you have bubbles, at bottom you see what bubble you have currently and what bubble you will have next, after you hit bubbles at top if after hit the same color bubbles you get sum of 3 or more they will disappear, and you get points, if here is gap etc let say we have patern like that

[red][red]
[green][green][green]
[red][red]

so if we hit bold green, between both red will be gap
[red][red]

[red][red]
so bottom 2 reds will drop down. and result of your hit will be like
[red][red] only.


bubbles with the star after disappearing will remove all bubbles with the same color from table (you still be able to get that color after all).
bubbles with the dollar sign will give extra points.


From: Yago
Or are you scripting the game in SIMBA?

Yeah i prefer simba for that since game is server side, here is no ability to use cheat engine etc..

From: NKN
Get direction of pointer, which is where you start the ball position.

If over half of the game screen, add 1 to x, if less, -1 from x, if perfectly middle, add 0 to x.

Always subtract 1 to y.

It'll move up and up, and then check collision.

(I did a collision based game myself in Actionscript 3.)


I see your point partially but something inside that is confusing me a bit :? probably i should try to program it, maybe it makes things more clear

NKN

2013-01-24 07:20:25

So you're using Simba, not Actionscript?

masterBB

2013-01-24 07:44:12

He is creating a bot, not a game.

Mark

2013-01-24 09:02:46

I don't got time to write this out but all that would be required is to create a grid of the displayed gems then sort through the grid of matched targets then again to find valid targets without obstacles blocking after you've done that it's just some basic trig to work out your angles from you to your target if you have valid target that is as last time I played a game like this there was at times no valid targets.

Sorry I couldn't be of more help to you with this.

Laimonas171

2013-01-24 09:46:10

From: NKN
So you're using Simba, not Actionscript?

It creating bot not game

From: masterBB
He is creating a bot, not a game.

After you write down, I noticed that thread name is misleading a bit..

From: CRU1Z1N
I don't got time to write this out but all that would be required is to create a grid of the displayed gems then sort through the grid of matched targets then again to find valid targets without obstacles blocking after you've done that it's just some basic trig to work out your angles from you to your target if you have valid target that is as last time I played a game like this there was at times no valid targets.

Sorry I couldn't be of more help to you with this.

I see you point, sound not bad but i have no idea how to divide things like that (have to learn though, maybe here is any tut about that?) anyways another thing that rows are not like
edit was not visible formatting.
[x][x]
[x][x]
[x][x]
[x][x]
but

[x][x]
[x][x]
[x][x]
[x][x]
not sure or it has problem…

NKN

2013-01-24 15:56:27

Ohh, I got it now.
Can't help you lolz