[4.9]Traffic Jam

Show us what you're making.

[4.9]Traffic Jam

Postby TheMackshun » April 18th, 2011, 2:40 am

This is a game about a person who is very strict about work. One day he is late because, um... he woke up on the wrong side of the bed? So then, he is rushing to work and there is a lot of traffic.He must dodge the cars and when his car gets the red power-up, he will knock all the cars out of his way.

But there is one thing.How is this going to be done?I am stuck trying to make the other cars drive down the screen and then doing it again in a random X position.Never the same.Or is it impossible. Also i don't know h ow the car fever(knock cars aside) is going to work out.Help would be really appreciated.

Hopefully this takes off. :)
Attachments
Traffic Jam.nds
(673.98 KiB) Downloaded 193 times
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby AngelWire » April 18th, 2011, 4:13 am

I made you a little example of the car fever for you:
PushAside.nds
(334.56 KiB) Downloaded 215 times

Here's the code:

//Replace A with the player's sprite number. Replace B with the oncoming car's sprite number

If TopSprites[A].Y<TopSprites[B].Y+64 //Checks if the player's car is close to the oncoming car
If TopSprites[A].Y>TopSprites[B].Y-64 //Checks if the player's car is close to the oncoming car
If TopSprites[B].X>TopSprites[A].X-64 //Checks if the player's car is close to the oncoming car
If TopSprites[B].X<TopSprites[A].X+64 //Checks if the player's car is close to the oncoming car

If TopSprites[B].X>=TopSprites[A].X //Checks if the oncoming car is to the right or right in front of the players car

Set Variable TopSprites[B].X;TopSprites[B].X+2 // Moves the oncoming car to the right
End If
If TopSprites[B].X<TopSprites[A].X
//Checks if the oncoming car is to the left of the players car
Set Variable TopSprites[B].X;TopSprites[B].X-2 //Moves the oncoming car to the left
End If
End If
End If
End If
End If


To make the oncoming car got to the top of the screen after it disappears just check if it is below the screen:
If TopSprites[B].Y>192
Make it jump to a random X location:
Set Variable TopSprites[B].X;PA_RandMinMax(C,D) Since your using only part of the screen for the road you'd want to set C to the far left side of the road, and D to the far right side of the road subtracted by the width of the oncoming car sprite(64 I presume)
And make it jump to the top:
Set Variable TopSprites[B].Y;-64

Just a note, Instead of the If actions, you could use the if sprite location actions. I just find it easier to use the If. And instead of using the set variable action you could use the set sprite location action.

I hope your project turns out well.
AngelWire
 
Posts: 47
Joined: December 31st, 2010, 5:38 pm
Location: Oklahoma USA

Re: [4.9]Traffic Jam

Postby TheMackshun » April 19th, 2011, 1:12 am

Thanks. This is useful. :grin: (off topic- i thought Links Crossbow Training DS was awesome and genious. :)
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby TheMackshun » April 19th, 2011, 2:33 am

Yay this works. Thanks AngelWire! This is awesome :)
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby AngelWire » April 19th, 2011, 4:00 am

Your welcome, glad I could help. If you need anything else I'll be glad to help.
AngelWire
 
Posts: 47
Joined: December 31st, 2010, 5:38 pm
Location: Oklahoma USA

Re: [4.9]Traffic Jam

Postby Nobody » April 19th, 2011, 11:41 pm

i think you should speed up the cars
Feel free to ask me for help. I'm on the forum a lot.

Recent Projects:
Retro Ducks: viewtopic.php?f=13&t=3533 (latest)
The Living Dead 2: viewtopic.php?f=13&t=3483
Crafters DS (Minecraft 2D Clone!) viewtopic.php?f=13&t=3082
User avatar
Nobody
 
Posts: 2161
Joined: February 14th, 2011, 12:08 am
Location: United States of America

Re: [4.9]Traffic Jam

Postby Foxi4 » April 19th, 2011, 11:50 pm

I absolutely LOVE the transitions you used.

A tut on how you made them would be more than welcome, they look snazzy.
Current Projects:

FalloutDS: Postponed until proper libraries are created, 10%
Foxi_Lib: A completely revised version of NitroSprites[FINAL], NitroBackgrounds and NitroText[FINAL], 40%
Foxi4
 
Posts: 1222
Joined: December 31st, 2010, 3:25 am

Re: [4.9]Traffic Jam

Postby TheMackshun » April 20th, 2011, 3:23 am

Will do. Here is an update of my progress. Now I just need to work out my graphics and levels. The car fever is good for right now.Also, to make this realistic, the 2 cars shouldn't be able to clash.

Here are instructions.

-You must avoid the cars that may crash you.
-If your score reaches 5000, you win!
-You must have complete focus to reach this score.
-If your score reaches a certain point, you will achieve car fever which is triggered by the icon on the bottom screen.You will be invincible for about 10 seconds.
- :grin: The music makes It harder to concentrate.
-Don't stay in 1 spot.
-You have 3 lives.
-Have Fun!
Attachments
Traffic Jam V1.nds
(1.05 MiB) Downloaded 195 times
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby Godslayer500 » April 20th, 2011, 11:39 am

Foxi4 wrote:I absolutely LOVE the transitions you used.

A tut on how you made them would be more than welcome, they look snazzy.

Those transitions are a PAlib function. They are good looking but they replace the first BG layer.
Godslayer500
 
Posts: 59
Joined: December 30th, 2010, 2:28 pm
Location: Netherlands

Re: [4.9]Traffic Jam

Postby TheMackshun » April 22nd, 2011, 1:31 am

Suggestions would be great. :)
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby AngelWire » April 22nd, 2011, 3:52 am

Here's a few suggestions,

After the cars go out of the screen, make them reappear above the view, maybe even at a random y point out of the screen so the cars won't always be side by side.

Don't let the two oncoming cars overlap.

Turn the car fever off after you use it.

Use both screens, have the oncoming cars start at the top screen and come to the bottom screen.

Make the collisions more accurate, I know it make it easier having a , but it just doesn't look good.

And one last thing: Is there anything that you plan on implementing besides just the communities suggestions? Taking community suggestions is good, but coming up with your own features is better. ;)
AngelWire
 
Posts: 47
Joined: December 31st, 2010, 5:38 pm
Location: Oklahoma USA

Re: [4.9]Traffic Jam

Postby TheMackshun » May 7th, 2011, 4:27 pm

I have all of that done. There is more difficulty, Ni-Fi, Taunting, 3 more levels, Double Screen, etc.
Here it is.

Sorry for the wait, had a bug but I fixed it.
Attachments
Traffic Jam V2.nds
(1.14 MiB) Downloaded 158 times
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby YoshiInAVoid » May 7th, 2011, 6:08 pm

Does the nifi work? Is it tested?
Never underestimate the power of -O2.
YoshiInAVoid
Site Admin
 
Posts: 2079
Joined: December 30th, 2010, 11:53 am
Location: England

Re: [4.9]Traffic Jam

Postby TheMackshun » May 7th, 2011, 6:55 pm

Yes I tested it. But there is only one flaw. Player 2 keeps jumping to one spot causing it to lose. I'm going to fix that soon. But, yeah, it works. You have to press the two in the top-right side of the screen on the title.
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby TheMackshun » May 13th, 2011, 1:48 am

No responses? :) Dislikes and likes?
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby Nobody » May 13th, 2011, 8:55 pm

It's not fast enough for me. It would be more fun if you made the game have a faster feel by scrolling the background a lot faster and speeding up the cars. Also the road rage wasn't as good i would like. I think upon collision the car should automatically crash into the wall instead of pushing it, plus with the current way it's set up it only moves to the left, so if the boss is spawned far to the right you can forget it. Also i don't like the boss concept. I liked the original concept of many cars being spawned instead.
Feel free to ask me for help. I'm on the forum a lot.

Recent Projects:
Retro Ducks: viewtopic.php?f=13&t=3533 (latest)
The Living Dead 2: viewtopic.php?f=13&t=3483
Crafters DS (Minecraft 2D Clone!) viewtopic.php?f=13&t=3082
User avatar
Nobody
 
Posts: 2161
Joined: February 14th, 2011, 12:08 am
Location: United States of America

Re: [4.9]Traffic Jam

Postby TheMackshun » May 30th, 2011, 2:56 am

Yay. I'm pretty much done. There are minor errors like the Ni-fi, which works though. Im assuming this is the beta because it is finished. The boss is super fun, long, and challenging. Have fun! :mrgreen:
Attachments
Traffic Jam Beta V1.nds
(1.66 MiB) Downloaded 198 times
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby YoshiInAVoid » May 30th, 2011, 10:53 am

Keep holding up until you get to the top, then you can't move left and right! Theres a bug for you to fix.
Never underestimate the power of -O2.
YoshiInAVoid
Site Admin
 
Posts: 2079
Joined: December 30th, 2010, 11:53 am
Location: England

Re: [4.9]Traffic Jam

Postby TheMackshun » May 30th, 2011, 5:09 pm

Technically it is and it isn't. but Ill fix it . :)
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 212
Joined: January 20th, 2011, 2:56 am

Re: [4.9]Traffic Jam

Postby YoshiInAVoid » May 30th, 2011, 5:31 pm

So you added it in on purpose?
Never underestimate the power of -O2.
YoshiInAVoid
Site Admin
 
Posts: 2079
Joined: December 30th, 2010, 11:53 am
Location: England

Next

Return to Work In Progress

Who is online

Users browsing this forum: No registered users and 1 guest

cron