ZZT racing game 'checkpoints'?

NOTE: I HATE A LOT OF YOUR ZZT GAMES, SO WATCH OUT!

Moderators: Commodore, Zenith Nadir

770
What can be said now?
Posts: 0
Joined: Thu Jul 15, 2004 5:06 am

ZZT racing game 'checkpoints'?

Post by 770 »

Okay, I've just recently been getting into making things in ZZT, and I was thinking about making a racing game.. where, you just kinda run around a track and it's all like "hooray! you ran around the track!" and it ends the game or something.


Aaanyway, how would you make sure that the player actually did run all the way around the track? I was thinking of maybe an object that sets a flag, but, then I'd have to have an entire row of objects across the track or something, plus it'd make the player stop when you hit one.

Any ideas?



P.S. - These emoticons scare me.
User avatar
Dr. Dos
OH YES! USE VINE WHIP! <3
Posts: 1772
Joined: Tue Mar 11, 2003 12:00 am
Location: Washington

Post by Dr. Dos »

Our emoticons were hand picked.

Since you're new don't be surprised if this thread gets way off topic!

I recall Smiley Racer X and SRX-2 always had a narrow part then you'd pass the narrow point and an object would check if it was blocked in the direction the car would pass it which i worded badly. But yeah i assume then it would send something else to zap itself or something. and yeah look at Smiley Racer X.
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter

Apologies for the old post you may have just read.
User avatar
clecky
Founder of Scientology
Posts: 18
Joined: Sun Mar 16, 2003 12:59 am
Location: ns, canada
Contact:

Post by clecky »

:adomisfreewareyoudontneedacrackorserialnumbertopl
"Reefer makes darkies think they're as good as white men." Harry J. Anslinger, 1929
770
What can be said now?
Posts: 0
Joined: Thu Jul 15, 2004 5:06 am

Post by 770 »

Thanks for that, I'll check it out. ^^
User avatar
Zenith Nadir
this is my hammer
Posts: 2767
Joined: Wed Mar 12, 2003 11:40 am
Location: between the black and white spiders

Post by Zenith Nadir »

Freak Da Cat also had a racing section. There was also a game demo called RUSH ZZT by Tricky you may like, you get to run people over

also hi there!!!!!!!! welcome to z2
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast
User avatar
Jotz
rank bank jotz
Posts: 120
Joined: Thu Oct 16, 2003 2:59 am
Contact:

Post by Jotz »

Here is what is left of a racing game I was going to make. The checkpoint thing should work though, just edit the objects in the purple walls.

http://www.geocities.com/jotzjquestion/dl2.htm
╟ is the best char.
519
What can be said now?
Posts: 0
Joined: Tue Dec 09, 2003 9:56 pm

Post by 519 »

Quick question.

Most of the racing(whether it involves moving the player or another object) boards I've seen still require that a #if contact or #if blocked command be executed to detect said moving object. In my mind, this limits the checkpoint areas to one or two blocks wide.

There's probably a fix already, but I'm just throwing it out there. Is there a way to make a checkpoint line that's oh say 6 tiles wide.
User avatar
Jotz
rank bank jotz
Posts: 120
Joined: Thu Oct 16, 2003 2:59 am
Contact:

Post by Jotz »

You can use this code so that it can detect if there is a strip of a certain colored fake [example uses purple].

Code:

:loop
#if not blocked flow #put flow boulder
#if any white boulder da [if the space ahead is an empty]
#if any purple boulder do [if the object reaches the purple strip]
#change boulder fake
#loop
:da
#change boulder empty [this means you cannot use white fakes]
#loop
:do
#change boulder fake
Checkpoint cleared [or whatever]
#loop

I don't know if this will work though.
╟ is the best char.
519
What can be said now?
Posts: 0
Joined: Tue Dec 09, 2003 9:56 pm

Post by 519 »

Seems like that will take an awfully long time to execute. The object motion will be pretty choppy, but the concept works.
User avatar
superbowl shuffle
Official Clamp School Defender
Posts: 418
Joined: Mon Apr 07, 2003 4:52 am
Location: CAsE SenSiTiVe

Post by superbowl shuffle »

...but I love white fakes.
[size=75:lh51rn9h][b:lh51rn9h]When the 5 o'clock whistle blows, so do I.[/b:lh51rn9h]
[/size:lh51rn9h]
User avatar
Aplsos
ill make a meal of you
Posts: 429
Joined: Fri Jan 23, 2004 3:06 pm
Location: beautiful downtown joelville
Contact:

Post by Aplsos »

Image
r
User avatar
nps
so kawaii! so cute!
Posts: 810
Joined: Sun Jan 18, 2004 1:51 pm

Post by nps »

You could use a set of "#if alligned ..." objects to make the checkpoint as big as you want.
519
What can be said now?
Posts: 0
Joined: Tue Dec 09, 2003 9:56 pm

Post by 519 »

That's assuming the player is used as the 'racer'. I'm not sure if someone has figured out any "if alligned" commands with objects yet.

Sorry for the seminewbiesh questions, but I haven't reallyworked on my ZZT skills in over a year....
User avatar
Dr. Dos
OH YES! USE VINE WHIP! <3
Posts: 1772
Joined: Tue Mar 11, 2003 12:00 am
Location: Washington

Post by Dr. Dos »

That's what I thought at first until I realized you could have the car be checking for if it's alligned with the player to have it hit the checkpoint and then have the player alligned with the track at some point.
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter

Apologies for the old post you may have just read.
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

He stands there like a statue, Becomes part of the machine

Post by Quantum P. »

theorangehamster wrote:I'm not sure if someone has figured out any "if alligned" commands with objects yet.
A long-dead thread identifying some workarounds...

I suppose you could have a line of invisible objects placed on the track. They would be looping at #cycle 1, checking to see #if blocked <i>direction.</i> When the racing object moved into a tile adjacent to the object line, one of the objects would detect this and send out a message to move out of the way of the racer. The effect would be a checkpoint made from an invisible "membrane" that the racing object could pass through without being affected. For this to run smoothly, the objects would have to be placed before the racing object, so that the stat orders would allow the checkpoint code to run before the racer code each cycle. If this did not happen, the racer might run into the objects before they had a chance to respond.

Also, I bet that with some clever landscaping, you could create a skinny region on the track that didn't look so skinny.
Post Reply