How to modify Mario's Walking speed?

Description: Archive discussion
============================
Original description:
Official subforum for LunaLua - an extension framework for SMBX Engine Version 1.3 (which a core of SMBX 2.0). Share your creations that require the use of LunaLUA. You may also share info/tutorials on how to use LunaLUA.

Yingchun Soul M
Topic author, Viscount
Viscount
Avatar
Yingchun Soul M
Topic author, Viscount
Viscount
Age: 24
Reputation: 95
Posts: 330
Joined: 14 Nov 2014
English Pronouns: he / him
Location: China
Website

Post #1by Yingchun Soul » 16 Nov 2014, 3:19

I want to make a sonic styled speed
迎春心情 (迎春心语 Alt.) in Chinese
Alt. nickname: "Elf of Happy and Love / 快乐爱的小精灵"

Check out my 2D Platform / TheXTech Assets:
Fairy Tale World
Nostalgic Paradise (0.2)
Third Returns (WIP)

迎春花的精灵啊,请赋予我无尽的爱和指引,让每一座城在光明中重生,将大自然的力量和爱的力量集于一身吧!魔法凝结!

Veudekato M
Viscount
Viscount
Avatar
Veudekato M
Viscount
Viscount
Reputation: 79
Posts: 369
Joined: 19 Feb 2014
Location: Russia

Post #2by Veudekato » 16 Nov 2014, 11:25

You can use cheat 'sonictooslow'
or lunadll code:

Spoiler
#0

OnPlayerMem,0xE0,1,1,1000,0,df




#1000

PlayerMemSet,0,0xE0,x,0,1,df





OnPlayerMem,0xE0,-1,2,1001,0,df




#1001

PlayerMemSet,0,0xE0,-x,0,1,df


When X - your speed (if you see 'minus' dont remove him)

Its some glithy.

But you can change speed.


But in this code you cant stop. Im working on code now. Please wait
My channel (PlatGEnWohl news and tutorials , smbx tests):
http://www.youtube.com/channel/UC6h-42umT14iR1wa3VkOs3Q

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #3by Wohlstand » 16 Nov 2014, 15:19

Try same with Lua

tb1024 M
Marquis
Marquis
tb1024 M
Marquis
Marquis
Age: 21
Reputation: 34
Posts: 170
Joined: 31 Jul 2014
Location: Brazil, America, World

Post #4by tb1024 » 21 Nov 2014, 1:36

Code: Select all

function onLoop()
if (player:mem(0xf6,FIELD_WORD) ~= 0) then --if the player isn't unpressing left...
player.speedX = player.speedX - 10 --boost its speed.
elseif (player:mem(0xf8,FIELD_WORD) ~= 0) then --if the player isn't unpressing right...
player.speedX = player.speedX + 10 --boost its speed.
else
--do nothing
end
end

This LunaLua code boosts your speed while you are pressing the corresponding left or right on the keyboard. Pressing the Run button won't boost you further, however.
Just keep your hands away from the run button and this code works.
You stop some seconds after you release left/right.
It's a bit faster than Genesis/Mega Drive Sonic games' speed, but it's close.
Do you want fries with that?
Image
Mal posso esperar para a versão final da engine de Wolhstand!
English Translation
I can't wait for Wohlstand's Engine final version :D


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest