The Daily Click ::. Forums ::. Klik Coding Help ::. Maze 100 moving crate problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
29th November, 2004 at 09:31:57 -

My "Other" upcoming game is maze 100. A top view world with 100 levels (puzzle game). Anyway this game will have a move crate system but my code for it isn't perfect but it is nearly done. Anyway download this stand-alone version of a level from maze 100 and tell me if you know a way of how to do an engine or if you can help me. I will send the open source if someone can really help me.
www.klikacademy.com/spiderhead/Maze.zip

Thanks

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
30th November, 2004 at 17:35:06 -

anyone at all? I feel so alone...

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
30th November, 2004 at 22:52:11 -

The crate pushing would be easier to test if the sole crate that I found was not in a position which gets stuck after only two moves.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
3rd December, 2004 at 13:31:34 -

i'm not too sure what you are saying any other suggestions?

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

DJ W



Registered
  12/10/2003
Points
  780
4th December, 2004 at 11:52:52 -

He's saying where you put the block you can only push it twice before it gets stuck because the room it is in is so small and I dont udnerstand what you want, the engine seems fine to me except for a bug where you can go under the box.

 
n/a

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
4th December, 2004 at 11:59:45 -

that bug is what I need fixed! that is what I require help on!

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

Johan Hargne (Wartagon)

Lover Of Circys

Registered
  15/06/2003
Points
  1289

Game of the Week WinnerCROBASOFTVIP MemberPS3 OwnerWii OwnerMushroom
4th December, 2004 at 12:01:07 -

why can't you just continue on Spiderhead like a normal human beeing?

 
Music Composer.
http://johan.hargne.se

Crobasoft
www.crobasoft.com

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
4th December, 2004 at 12:55:21 -

I am, this is another part time project. People do have more than one project

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

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!
4th December, 2004 at 14:06:27 -

create border sprites near every wall. Then add this event:
Character overlaps crate
+ Border sprite overlaps crate
- Set the character's position back.

You may find another way instead of using some active objects called border sprite, but that depends on how your movement is used.

You could maybe let the crate overlap the wall a little bit and replace (Border sprite overlaps crate) by (crate overlaps backdrop).


 
Old member (~2004-2007).

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
4th December, 2004 at 15:52:04 -

I like the wall idea, but I don't think it would work with MMF.
But my problem is the bug which makes my character overlap the crate.

Image Edited by the Author.

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

daveC04



Registered
  26/09/2004
Points
  163
5th December, 2004 at 07:21:24 -

all you need to do is duplicate and modify the collision events you already have for backdrop objects, except replace say... Left Detector overlaps background to left detector overlaps crate.

that will make it so the player cant ever overlap with the crate.

from playing that example i guess the only reason the player cant overlap the crate when moving is because it moves at the same time and speed, unless its up against a wall. so just fix it.

 
n/a

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
7th December, 2004 at 10:57:42 -

yeah I did, but then my character would not move at all, anywhere.

 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation

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!
10th December, 2004 at 13:49:39 -

Try this: when left detector overlaps the crate, open a group called "push to right". In this group you will make the character go back right again.

 
Old member (~2004-2007).

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!
11th December, 2004 at 06:56:20 -

Hey, I found a solution, I think!
Try this:

When character overlaps crate + direction is left == Set Alterable Value/counter to 1.
When character overlaps crate + direction is right == Set Alterable Value/counter to 2.
When character overlaps crate + direction is up == Set Alterable Value/counter to 3
When character overlaps crate + direction is down == Set Alterable Value/counter to 4.
Then do this:
When Alterable Value is 1 == push character right N pixels + set Value/counter to 0.
2 = push left N pixels
3 = push down N pixels
4 = push up N pixels.

N represents the size of a tile.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click