Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: MZ Sidescroller plugin: Gravity Issues with Enemies
- Original author: MasterBlasterMK
- Original date: June 21, 2024
- Source thread: https://forums.rpgmakerweb.com/threads/sidescroller-plugin-gravity-issues-with-enemies.169695/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
Hello RPG Maker Community, Im using pgeogheg/RPGMaker-Side-Scroller-Plugin and by default this Plugin gives only the player a gravity function not events. But if I turn this to true: var _Game_CharacterBase_initMembers = Game_CharacterBase.prototype.initMembers;
Archived First Post
Hello RPG Maker Community,
Im using pgeogheg/RPGMaker-Side-Scroller-Plugin and by default this Plugin gives only the player a gravity function not events.
But if I turn this to true:
var _Game_CharacterBase_initMembers = Game_CharacterBase.prototype.initMembers;
Game_CharacterBase.prototype.initMembers = function() {
_Game_CharacterBase_initMembers.call(this);
this._gravity = false;
}
all the events in the game get gravity
but Im using the cross engine in RMMZ so all the abilites and attacks also get effected by It because they are events.
on the Thread called: "Difficulty with Making Wandering Monsters for a Sidescroller" it was advised to set the _gravity property to true on an event with a script call but I can't seem to figure out what exactly to write.
I think I'd be something like: setValue.game_characterbase_gravity = true; but that doesn't work.
Help would be much appreciated
(Its my first post sry if I posted it in the wrong place)
Im using pgeogheg/RPGMaker-Side-Scroller-Plugin and by default this Plugin gives only the player a gravity function not events.
But if I turn this to true:
var _Game_CharacterBase_initMembers = Game_CharacterBase.prototype.initMembers;
Game_CharacterBase.prototype.initMembers = function() {
_Game_CharacterBase_initMembers.call(this);
this._gravity = false;
}
all the events in the game get gravity
but Im using the cross engine in RMMZ so all the abilites and attacks also get effected by It because they are events.
on the Thread called: "Difficulty with Making Wandering Monsters for a Sidescroller" it was advised to set the _gravity property to true on an event with a script call but I can't seem to figure out what exactly to write.
I think I'd be something like: setValue.game_characterbase_gravity = true; but that doesn't work.
Help would be much appreciated
(Its my first post sry if I posted it in the wrong place)
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...