Page 1 of 1

Tetris/BlockDrop2007

PostPosted: Mon Mar 19, 2007 6:45 am
by Sgt. Sparky
I just started now on this tetris game, And I need sombody to figure out what is wrong... I'm just too frustrated with it.
first the animations would not change, then the tetris thingies started sticking to each other.
just please help me out with making the pieces Glitch free. :(
*tries to figure out some othe game to make*
*starts workin' on a samurai platform game*

text actors for tetris

PostPosted: Tue Jul 03, 2007 10:13 am
by Kid_Fisto
do a search on these forums for tetris or maybe even puzzle...
but anywayz i'm tryin' it too & what nobody seems to be saying quite yet is
make the tetris actor a text actor and use scripting
my script right now is the mouse down-Leftclick on a filled region covering view:
[code]
pumpkisI.textNumber=+1;
if (pumpkisI.textNumber>4);
{
pumpkisI.textNumber=1;
}
before it was just line1 and was on the text actor. but even that way needs perfecting of not leaving the text boundaries. :roll:
maybe we can help each other?
:roll:

PostPosted: Tue Jul 03, 2007 10:39 am
by Kid_Fisto
oops typo in my script
plus i don't seem to know how to put a script into a window on a post properly. well here ya go:
Code: Select all
pumpkisI.textNumber=pumpkisI.textNumber+1;
if (pumpkisI.textNumber>4);
{
    pumpkisI.textNumber=1;
}

hope this helps! Thanx...

PostPosted: Wed Jul 04, 2007 3:09 am
by Sgt. Sparky
Kid_Fisto wrote:oops typo in my script
plus i don't seem to know how to put a script into a window on a post properly. well here ya go:
Code: Select all
pumpkisI.textNumber=pumpkisI.textNumber+1;
if (pumpkisI.textNumber>4);
{
    pumpkisI.textNumber=1;
}

hope this helps! Thanx...

okay,
I am confused. :(
if you are asking about the code you must change your current code to,
Code: Select all
pumpkisI.textNumber += 1;
if (pumpkisI.textNumber>4)
{
    pumpkisI.textNumber=1;
}


:D

PostPosted: Sat Jul 07, 2007 4:49 pm
by Kid_Fisto
hey got your message thanx, but how do i invert the script above for the opposite direction. PS it works great so far! Thanks again...

Code: Select all
pumkisT.textNumber -= 1;
if (pumkisT.textNumber<1)
{
    pumkisT.textNumber=4;
}


???

PostPosted: Sat Jul 07, 2007 5:05 pm
by Kid_Fisto
sorry bout that i just figured it out

Code: Select all
pumkisT.textNumber -= 1;
if (pumkisT.textNumber<1)
{
    pumkisT.textNumber=4;
}


i just reversed the values
& switched the "if...then" numbers.
Thanks so much this works great!
enjoy everyone:

Code: Select all
text_actor.textNumber += 1;
if (text_actor.textNumber>4)
{
    text_actor.textNumber=1;
}


Code: Select all
text_actor.textNumber -= 1;
if (text_actor.textNumber<1)
{
    text_actor.textNumber=4;
}
[/code]

PostPosted: Sat Jul 07, 2007 5:07 pm
by Kid_Fisto
sorry again either i'm typing wrong
or the forum code thingy keeps converting my "minus signs"
into "underscores."

PostPosted: Sat Jul 07, 2007 6:04 pm
by Kid_Fisto
OKAY, new problem...
how do i do gravity with a text actor
when text actors do not allow collision events.
again keeping tetris idea in mind(i.e. i'll take any thing).

PostPosted: Sat Jul 07, 2007 6:16 pm
by Kid_Fisto
i took a brief look at yer game
maybe you've heard this, but
there's definitely something wrong with your collision.
e.g. if i make a collision event calculated with the final velocity multiplier being 0
then hopefully it won't bounce...
other than that i think you just need more space for your tetrese. :wink:
so try incorporating those ideas!