The Daily Click ::. Forums ::. Klik Coding Help ::. Does anyone no or have a snake game engine tutorial?
 

Post Reply  Post Oekaki 
 

Posted By Message

Deleted User
28th February, 2007 at 18:46:10 -

Hi guys, i want to make a snake game but i have no idea how to make one, does anyone have a simple snake engine or no of a tutorial i can use with the click product games factory 1 or 2! thanks for your help guys!!!!!!!!!!!!!!!!!!

 

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
1st March, 2007 at 05:17:56 -

Same.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
1st March, 2007 at 08:12:07 -

*insert unhelpful reply here*

 
n/a

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
1st March, 2007 at 18:48:59 -

What axel said.

 
http://www.SilverNova.co.uk


AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
1st March, 2007 at 20:39:23 -

well,
it's better to make in tgf2 because it allows more objects.

make a square, make it move automatically, and make it create other squares that get deleted after a certain amount of time using an alterable value.

then for each thing the head collects make the snake longer by making the time to delete parts of it's body higher.

and im sure you can figure out the rest.

 
.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
2nd March, 2007 at 02:30:22 -

Basically just a clearer version of what AndyUK said:

Make one object as your snake's head, make a movement for it so that it keeps moving in the same direction until you change the direction by pressing a key. Then always created a 'body piece' at the position of the head. And always add 1 to the alt val A of the body pieces. When the body piece's alt A > 20, destroy them. Every time you eat a piece of fruit, change that 20 to a higher number, thus increasing the time to destroy each body part. It would be best if you stored the number 20 as a variable such as Global Value A or something. That makes it easier to change and compare.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

blanco



Registered
  08/10/2003
Points
  66
2nd March, 2007 at 13:09:17 -

but I don;t think the movement is 'time' based, just 'tick' based. Every 'tick' you move 1 grid-space in x direction. The game starts ticking away slowly, and you are a certain length. As the game progresses, it ticks away faster and adds to your length.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd March, 2007 at 13:49:29 -

What is with the AndyWK? and why is it funny?

 
.

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
2nd March, 2007 at 14:37:06 -

I think he's thinking "WanK" or something.

 
Old member (~2004-2007).

Deleted User
2nd March, 2007 at 16:24:43 -

sounds great guys, i'm more of a graphic designer, my back rounds drawing, i'm a little fine on the programing side of TGF 2 can any of you guys sub mit a file of how to do it?

 

Deleted User
2nd March, 2007 at 16:39:41 -

right i've made a bouce, used the arrow keys to change directions on request (easy)

AWAYS CREATE BLOCK 2 RELATED TO BLOCK 1 (x1 y0) (right that works cool thanx for that)

the snake works

but how do i do the next bit i'm confused how do i make it so it doesn't create more Block 2's and how do i control the amount of block 2's being made?

 

Dave S.



Registered
  26/09/2003
Points
  924
3rd March, 2007 at 08:54:47 -

Didn't Assault Andy answer that question in a previous thread? I'm sure there are snake game demos on the site somewhere.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
3rd March, 2007 at 14:17:50 -

Hey, Va1entine your posts are hard to understand.


As for your question on how to not make more block 2s look at mine and Assault Andy's posts again, we have already told you.
Er this bit

"And always add 1 to the alt val A of the body pieces. When the body piece's alt A > 20, destroy them."

that will work ^

 
.
   

Post Reply



 



Advertisement

Worth A Click