Choose the levels like super mario 3

Get help using Construct 2

Post » Fri Oct 18, 2013 9:56 pm

Hello, I want to create a map to choose the levels like super mario 3
who can help me.
I just want to know how to move pressing the arrows for character move without stop until reach the world 1 or any world
when you get to wordl, character stop.
watch the video at 0:04 to 0:10
http://www.youtube.com/watch?v=bKublR3pZ2s


thank

The .capx file:
the file .CAPXluisgmolina2013-10-18 22:06:53
B
48
S
9
G
10
Posts: 200
Reputation: 8,267

Post » Sat Oct 19, 2013 12:03 am

you can use moveto behavior
B
19
S
6
G
3
Posts: 197
Reputation: 4,154

Post » Sat Oct 19, 2013 12:34 am

this behavior dont exist


Please be more especific...luisgmolina2013-10-19 00:34:54
B
48
S
9
G
10
Posts: 200
Reputation: 8,267

Post » Sat Oct 19, 2013 12:56 am

There are numerous ways to achieve what you're asking for. It's a bit sad that the capx you posted didn't have any events, because it seems like you didn't even try. Always fiddle around, great things will happen. XD

Here is an example for you:

https://dl.dropboxusercontent.com/u/2306601/mario3move.capx

It uses a few instance variables and a global variable to create a grid movement, which once moving will only stop when it's at the position of another level tile.

Have a look at it, I hope it's helpful.
B
23
S
6
G
11
Posts: 1,047
Reputation: 8,065

Post » Mon Oct 21, 2013 3:34 am

Excelent!!!!!
thank you
B
48
S
9
G
10
Posts: 200
Reputation: 8,267

Post » Mon Oct 21, 2013 4:13 pm

Hi PixelRebirth, can you explain me how you programmed?
which means "Personaje move = -1, 0, 1, 2 or 3"

thanks again


B
48
S
9
G
10
Posts: 200
Reputation: 8,267

Post » Mon Oct 21, 2013 7:21 pm

[QUOTE=luisgmolina] Hi PixelRebirth, can you explain me how you programmed?
which means "Personaje move = -1, 0, 1, 2 or 3"

thanks again[/QUOTE]


The instance variable "move" defines in which direction the player sprite moves. A value of -1 means that there is no movement. 0 - 3 stand for the four directions you can move in. Multiplied by 90 it gets you a corresponding angle (0*90=0,1*90=90,2*90=180,3*90=270) which you then can use with the "Move at angle" action of the sprite.PixelRebirth2013-10-21 19:22:37
B
23
S
6
G
11
Posts: 1,047
Reputation: 8,065

Post » Tue Oct 22, 2013 7:11 pm

thanks again
B
48
S
9
G
10
Posts: 200
Reputation: 8,267

Post » Mon Oct 28, 2013 7:22 pm

Another question more:
How I can do to make the character follow a path? ... like the game of super mario world
Annex youtube video.

http://www.youtube.com/watch?v=Q5FYo4plfBI

B
48
S
9
G
10
Posts: 200
Reputation: 8,267

Post » Tue Oct 29, 2013 9:36 am

You should probably have a look at the following thread and the examples Rojohound posted there:

http://www.scirra.com/forum/follow-path-behavior_topic47235.html
B
23
S
6
G
11
Posts: 1,047
Reputation: 8,065

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests