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: loop bitwise exponential with modulus ? (solved)
- Original author: Jonforum
- Original date: July 22, 2017
- Source thread: https://forums.rpgmakerweb.com/threads/loop-bitwise-exponential-with-modulus-solved.81647/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Learning Javascript
Summary
I want to give a little headache to the mathematician. I want to put a formula in a loop. My context is the following. {
Archived First Post
I want to give a little headache to the mathematician.
I want to put a formula in a loop.
My context is the following.
Protected download
i need use Bitwise and Moduluse.
thank for sugestion
My little coffee with rum, which prevents me to find a formula coherente, I absolutely want to go through these 2 operators.
Do you have any mathematical suggestion?
I just have to spread the images here by the center
Therefore logically.
Pic 1: -50X
pic2: +50X
Pic3:-100X
Pix4:+100X
pic5:-150X
pic6:+150X .....
.........................
thank for help
edit:
easy way with random
I want to put a formula in a loop.
My context is the following.
Protected download
i need use Bitwise and Moduluse.
thank for sugestion
PHP:
for (var i=0,D=p.f46e42DX;i<6;i++){
D = (~D+1)*((i+1)%2);
console.log('D : ', D );
$gameScreen.showPicture(pID++, this.pFNR[0+i], 1, p.c85109[0]+D, p.c85109[1]).spine(spineIDReward); //#c85109 REWARD ICONS
}
Do you have any mathematical suggestion?
I just have to spread the images here by the center
Therefore logically.
Pic 1: -50X
pic2: +50X
Pic3:-100X
Pix4:+100X
pic5:-150X
pic6:+150X .....
.........................
thank for help
edit:
easy way with random
PHP:
var startingID = ~~(Math.random() * (this._aniControler._motionStep.starting[lastDX].length)); //starting
var startingMotion = this._aniControler.getMotionFromName(this._aniControler._motionStep.starting[lastDX][startingID]);
var reverseID = ~~(Math.random() * (this._aniControler._motionStep.reversing[lastDX].length)); //reversing
var reversingMotion = this._aniControler.getMotionFromName(this._aniControler._motionStep.reversing[lastDX][reverseID]);
var movingID = ~~(Math.random() * (this._aniControler._motionStep.moving[lastDX].length)); //moving
var movingMotion = this._aniControler.getMotionFromName(this._aniControler._motionStep.moving[lastDX][movingID]);
var endingID = ~~(Math.random() * (this._aniControler._motionStep.ending[lastDX].length)); //ending
var endingMotion = this._aniControler.getMotionFromName(this._aniControler._motionStep.ending[lastDX][endingID]);
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator 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...
