tS7.1 Memory Game

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

tS7.1 Memory Game // Interactive Artwork

1  |  

Post by Johny // Apr 27, 2006, 8:43am

Johny
Total Posts: 672
pic
Hi All, on learn tS JScript, I make a memory pair game.


Here is the game

Happy code and Enjoy the game :)

Post by roman // Apr 27, 2006, 12:09pm

roman
Total Posts: 320
I win on 5 tries:) Johny you are excellent, I did not even need instructions!

Post by peterma // Apr 27, 2006, 9:43pm

peterma
Total Posts: 48
Another cute one, Johny !

Simple and working perfectly here.


The only small problem I see is that game consumes 100% cpu, once it is started. I guess it is related to problems with timers use you mentioned elsewhere.

What about to put "Sleep activity" component to your main game cycle to let cpu breath a bit ?

Post by Johny // Apr 28, 2006, 7:32am

Johny
Total Posts: 672
pic
Thanks Roman! :)

Thanks PeterMa! :)


I win on 5 tries :)

Congratulation!

Johny you are excellent,

No, that not true. I'm still on learning. There're many excellents out there. Only they don't whan to share it with this community.

I did not even need instructions!

That's because you played the same kind of this game before ;)


The only small problem I see is that game consumes 100% cpu, once it is started. I guess it is related to problems with timers use you mentioned elsewhere.

What about to put "Sleep activity" component to your main game cycle to let cpu breath a bit ?

Fixed on this new update.


Roman and PeterMa, I also tried to fixed "3DTetris game speed problem" issue by you both before. I post it on beta forum, ask for someone to help me to test it on faster CPU and report the result, but sad until 2 days no one reply it. Noone want to help me to test it. That really kill my motivate to share what I learned to this community for make tS JScript easy to learn. I do this because I care and I saw the power of tS JScript. That's possible to write mini FPS game with this tS Script, but forget it. Why I must care if you don't care?


Johny

Post by trueBlue // Apr 28, 2006, 10:59am

trueBlue
Total Posts: 1761
pic
I also tried to fixed "3DTetris game speed problem" issue by you both before. I post it on beta forum, ask for someone to help me to test it on faster CPU and report the result, but sad until 2 days no one reply it. Noone want to help me to test it. That really kill my motivate to share what I learned to this community for make tS JScript easy to learn. I do this because I care and I saw the power of tS JScript. That's possible to write mini FPS game with this tS Script, but forget it. Why I must care if you don't care?
Johny

I for one appreciate what you have done and shared. If I can help in any way, just private message me anytime. Do not know if my specifications fit the bill as a faster CPU though. <- Look at my Signature down below.

Thanks again for sharing Johny!

P.S. My Grandchildren would like to thank you as well.

Post by roman // Apr 28, 2006, 1:07pm

roman
Total Posts: 320
Roman and PeterMa, I also tried to fix "3DTetris game speed problem" issue by you both before. I post it on beta forum, ask for someone to help me to test it on faster CPU and report the result, but sad until 2 days no one reply it. Why I must care if you don't care?


I just tested and replied on Beta. Johny, I do care a great deal about talented artists like you, guys like you make it worthwhile for us at Caligari to push forward with trueSpace. Thanks for that.


We are very busy with character animation on 7.5 so that is my excuse also, but I promise when you post anything new and good, I will reply ASAP.

Post by e-graffiti // Apr 28, 2006, 3:47pm

e-graffiti
Total Posts: 171
pic
Johny, I am excited to see game development in tS. I would like to learn more about Game Programming in tS. How would you recommend I get started? Also in the tS7 DG it mentions a "reference guide" for understanding tS objects. Where can I get hold of the reference guide? Thanks!


Regarding the two files for the game, I was able to load the .RsScn file and play both of your games but I dont know what to do with the .rcd file and dont understand how it is part of the game? Can you shed some light?

Post by Johny // Apr 28, 2006, 6:54pm

Johny
Total Posts: 672
pic
Thanks TrueBlue, and give my thanks to your Grandchildren too.

Roman, sorry for bad post and for take you to not care to tS('s script) improve list. I just in bad mood because you request for make it run on same speed on different cpu speed and then you don't care.

E-graffiti: I recommend to use tS JScript because RegEx on it would be usefull on future. You can start from try to make a simple game, if got some problem you can searching it on tS DG, look on some sample that come with tS or ask question on this forum (last selection). I recommend to start from simple project case rahter than from DG. Because if you start from a case, you will got both practice experience and theory on the same time.
My poin is try to make your own, if have some problem look how other do it on finished program, if still have problem searh DG maybe there're some this usefull there, and if still I got problem try to ask it on this forum hope devs team or someone else will give you and answer.

E-graffiti, you can open rcd file with trueplay or with tS macro recorder. (But I think you don't need rcd file if you already have RsScn file) rcd file is only alternatif to one who don't have tS.

HTH

Post by trueBlue // Apr 29, 2006, 3:32pm

trueBlue
Total Posts: 1761
pic
Johny: I was curious why the Box in your Memory game gets selected all the time? I was also wondering if there is a way to hide the object's widget? I expanded the Box's Matrix so that the Box could not move, scale, rotate. No biggie just curious.

Post by Johny // Apr 29, 2006, 4:16pm

Johny
Total Posts: 672
pic
I was curious why the Box in your Memory game gets selected all the time?
That's because the program still on running. Try to stop it first buy uncheck "Selection Change Event"'s active check box or by click stop button. I make it keep on selected because want to aviod widget been selected while player want to click on cube. code on line 32 or 33 of check1 and check2.
I was also wondering if there is a way to hide the object's widget?
Me too.
I expanded the Box's Matrix so that the Box could not move, scale, rotate. No biggie just curious.
How about create a plane and put it far behind camera and make it selected all the time until we found the way to hide the widget?

Post by trueBlue // Apr 29, 2006, 5:19pm

trueBlue
Total Posts: 1761
pic
I make it keep on selected because want to aviod widget been selected while player want to click on cube. code on line 32 or 33 of check1 and check2.
I fixed this by Expanding the Matrix of all the objects.

How about create a plane and put it far behind camera and make it selected all the time until we found the way to hide the widget?
Yes that would do the trick. I think there is a null object too.

Is there a way to open a script when a player finishes the game? Or even better if a player scores a perfect score "Do something great", if else a player scores something else "Do something else".

Post by Johny // Apr 29, 2006, 6:20pm

Johny
Total Posts: 672
pic
s there a way to open a script when a player finishes the game? Or even better if a player scores a perfect score "Do something great", if else a player scores something else "Do something else".
If you want to pop up different message acording to the score, you can modify code on object check3 at line 27-33 to make it check tried value and then pop up mesage as you want.

If you want to run other script object after game finished, you can replace code on line 32 (check3) with "disconnect check2 from selected event" and "connect your new script object with selected event" (look how to do it on line 29 of check2). And don't forget to add code to make selected event's active flag become false when you already finish with new script object.

Post by peterma // Apr 30, 2006, 3:27am

peterma
Total Posts: 48
Roman and PeterMa, I also tried to fixed "3DTetris game speed problem" issue by you both before. I post it on beta forum, ask for someone to help me to test it on faster CPU and report the result, but sad until 2 days no one reply it. Noone want to help me to test it.



Johny as for me, I'm no longer a regular Caligari contractor, so my replays here are delayed and ability to test very limited. I'm glad you keep on scripting and you encouradge also other guys to do some cool scripting stuff.

Post by Johny // Apr 30, 2006, 5:17am

Johny
Total Posts: 672
pic
Never mind PeterMa ;)
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn