Changing Yoshi parameters

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.

wes
Topic author, Passerby
Passerby
wes
Topic author, Passerby
Passerby
Reputation: 0
Posts: 1
Joined: 12 Dec 2015

Post #1by wes » 12 Dec 2015, 17:37

Hi. I'm trying to modify Yoshi parameters, in special the tongue position.

This page brings the memory address to do that:
http://wohlsoft.ru/pgewiki/SMBX_Player_Offsets

The tongue X position is located in PC+0x90.

So, I tried this is lunadll.lua:

player:mem(0x90, FIELD_WORD, 200)


But it doesn't work. This is the right way to asign values to memory address?

Thanks!

Kevsoft M
Angry developer
Angry developer
Avatar
Kevsoft M
Angry developer
Angry developer
Age: 24
Reputation: 93
Posts: 379
Joined: 26 Apr 2014
Location: Austria
Website

Post #2by Kevsoft » 13 Dec 2015, 10:22

Yes, it is the right way to assign memory values.

1.) Be sure that you doing that in an LunaLua event (i.e. onLoop), because value can change a lot.
2.) Maybe you have to first print out the value for debug,
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest