The Daily Click ::. Forums ::. Klik Coding Help ::. map movment
 

Post Reply  Post Oekaki 
 

Posted By Message

gareth



Registered
  13/07/2002
Points
  1018
27th July, 2003 at 07:40:01 -

when makin a world map (like in mario world) whats the best movement to put the player on so that you can move to and from levels, but the player must follow a set path to and from these levels?
any ideas?

 
n/a

lauri



Registered
  04/05/2003
Points
  57
27th July, 2003 at 09:19:47 -

ball movement.

 
make things klik.

gareth



Registered
  13/07/2002
Points
  1018
27th July, 2003 at 09:23:23 -

yes me tryed that, but how can i make it when your player is on level 2, you can press down to go back to level one or up to go to level three, ball movement is terrible as its very unaccurate and misses the level somtimes??

 
n/a

lauri



Registered
  04/05/2003
Points
  57
27th July, 2003 at 09:30:23 -

well try making a eight direction movement. and around the path some objects (maybe invisible) that stops the player. when the player is overlapping the level icon make it stop. and when you hit enter the level starts.

 
make things klik.

Penguin Seph



Registered
  11/12/2002
Points
  1338
27th July, 2003 at 09:33:43 -

I don't know if you will use this but on me game Seal Boy (you can download a demo now, so download it) the levels are invebul if you have'n got to them, and you click on a level to play it. Is that OK?

P.S Down the dem of Seal Boy

 
Hi!

lauri



Registered
  04/05/2003
Points
  57
27th July, 2003 at 09:37:26 -

it will work.

 
make things klik.

Rycon



Registered
  20/09/2002
Points
  996
27th July, 2003 at 12:16:37 -

You dont really need to make ball movement, but it can make it easier. One way of doing it would be, if player presses up, subtract his Y cord untill he reaches the level. For ball movement, simply set his speed to 0 in the properties, and when player presses up, set direction to up, and set speed to 10. Now if you want him to turn, and not just be a 4 way thing, that would take a bit more thinking.

 
We are the music makers, we are the dreamers of dreams...

Kramy



Registered
  08/06/2002
Points
  1888
27th July, 2003 at 13:06:12 -

Here is how to do what you want.
You need a level counter,(for the level your world map char is currently "on") and a wait counter(although I don't know anyone else who uses these, they are invaluable)

Note:
counter = level counter
waiter = wait counter
------------------------------
If counter = 1
If waiter = 3
Enter key is pressed
Enter level 1

If counter = 2
If waiter = 3
Enter key is pressed
Enter level 2

If counter = 3
If waiter = 3
Enter key is pressed
Enter level 3

If counter = 4
If waiter = 3
Enter key is pressed
Enter level 4
------------------------------
your level entering events
------------------------------

If counter = 1
If waiter = 3
Player presses(direction of arrow key)
set counter to 2
set waiter to 0

(then just add "arrows" or "dots" to show the path your world map char can move on)

If counter = 2
If waiter = 3
Player presses(direction of arrow key)
set counter to 1
set waiter to 0

If counter = 2
If waiter = 3
Player presses(direction of arrow key)
set counter to 3
set waiter to 0

If counter = 2
If waiter = 3
Player presses(direction of arrow key)
set counter to 4
set waiter to 0
(A split in the path - choose which level to go to, or go back)

-------------------------------------------------------
Now we need your char to actually move
There are several ways to do this, but assuming you want your char to follow a complex, and not straight path, use this one
-------------------------------------------------------
create a bunch of "clones"
destroy them at the start of the level

Give them path movement from one level to another
When someone presses the arrow key to go to a level, create
that specific clone at position of char, depending on the counter value
make actual char invis

when "clone number" has reached the end of its path
make real char reappear
destroy clone
set waiter to 3


There you go, a simple, fool proof way to make a wolrd map.
Good luck.

 
Kramy

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
27th July, 2003 at 13:29:04 -

i think ussing ball movement is quite easy because you can make the object (character) look towards direction of level marker and stop when it is overlapping it.

 
.

gareth



Registered
  13/07/2002
Points
  1018
27th July, 2003 at 13:53:42 -

yes i like the idea of using clones, although this will get very annoying, as im planning at least 30 levels, i dont quite get what the 'wait' counter is used for?

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
27th July, 2003 at 21:52:21 -

Not much in this example. I mainly use them for multiple commands of different types(for example, I don't want to engage an enemy in combat and look at the stats of an item if I'm just trying to pick up something. I use it the same way as the "only one action when event loops" but for multiple events at the same time.

 
Kramy

gareth



Registered
  13/07/2002
Points
  1018
28th July, 2003 at 04:59:48 -

i solved it, i used the "direction calaucator" extension, now the player will walk to the level, and then walk around it in a circle, works nice.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click