How do I recreate some Mario features?

Get help using Construct 2

Post » Mon Aug 08, 2016 4:40 pm

Nice going there man!

Having those default values stored as instance variable of the player sprite would make the most sense, as those values are directly tied to how that particular sprite behaves. However, global variables or a dictionary wouldn't be bad either. So I guess in the end it all boils down to what you prefer.
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Mon Aug 08, 2016 10:04 pm

Magistross wrote:Nice going there man!

Having those default values stored as instance variable of the player sprite would make the most sense, as those values are directly tied to how that particular sprite behaves. However, global variables or a dictionary wouldn't be bad either. So I guess in the end it all boils down to what you prefer.


Thanks!

Another option I may just take is make a function for each (setSprintSpeed; setWalkSpeed; etc).

I have a list of issues I need to work out, especially with the sprint (using x button), but thought I would share a link anyway to what I have right now: (sometimes its fun to see the progress)
http://loubagel.com/archives/louPlatform/080716/
ImageImageImage
B
39
S
22
G
11
Posts: 492
Reputation: 9,925

Previous

Return to How do I....?

Who is online

Users browsing this forum: Cub3D, David181, yiuyiu6666 and 26 guests