Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 3    [LBP3] Suggestions
#1

Give us division please!

Archive: 20 posts


The possibilities with division are endless. We already have multiplication, addition and subtraction so why not division?
Division can be made in LBP but can only output values from 0-1. It also takes a couple of frames to get a good value which in some cases makes it useless.
2014-11-25 11:42:00

Author:
Willman4
Posts: 170


Well, the included multiplication works more like division, so...2014-11-27 15:07:00

Author:
MisterPotatoHed
Posts: 21


Well, the included multiplication works more like division, so...

That doesn't really make sense.

From what I understand, you mean enabling creators to divide the players score. So, it could be done with some logic, some = ridiculously complex and cluttering. If it were pseudo-logic it would be something like this:
Detect score
If meets x
Calculate score division
Remove x score from player
Reset
2014-11-27 18:25:00

Author:
SEWO97
Posts: 637


Well, the included multiplication works more like division, so...
Makes no sense at all. Sure if you want to divide by 2 you can multiply by 0.5 but what is that useful for when calculating distances using trigonometrical functions like the sine wave
2014-11-27 21:22:00

Author:
Willman4
Posts: 170


pretty sure NAND gates is all you need to do anything, I'm not completely verbose in it, but I am fairly certain you can do simple division using multiplication gates and not gates. Lemme look up the schematics of logical division.2014-12-04 00:40:00

Author:
lionhart180
Posts: 200


pretty sure NAND gates is all you need to do anything, I'm not completely verbose in it, but I am fairly certain you can do simple division using multiplication gates and not gates. Lemme look up the schematics of logical division.

Hmm, yes please check it out. Though I'm not so sure. If the NOT gate would invert like this, x^(-1), it would work. But it can't handle signals over 100%
2014-12-04 07:21:00

Author:
Willman4
Posts: 170


It's actually really easy to do division, you just need logic2014-12-04 21:17:00

Author:
CHiMES_D
Posts: 18


It's actually really easy to do division, you just need logic

Easy. Huh.
2014-12-04 21:20:00

Author:
SEWO97
Posts: 637


Wait, there's muliplication in LBP now? What can you multiply? If you can multiply, can't you multiply by 1/2, which is the same as dividing by 2? Forgive my ignorance but I've completely missed this functionality so I don't know what exactly it allows.2014-12-04 21:52:00

Author:
Sehven
Posts: 2188


Yes, but try dividing by not base 2 numbers and prime numbers that dont have an easy x^-1 value, like 1/3 or 1/7th.

That takes a lot more complex logic. Its possible, I know you can do it, but I don't remember the exact algorithm
2014-12-04 21:54:00

Author:
lionhart180
Posts: 200


Yes, but try dividing by not base 2 numbers and prime numbers that dont have an easy x^-1 value, like 1/3 or 1/7th.

That takes a lot more complex logic. Its possible, I know you can do it, but I don't remember the exact algorithm

Please, please, please tell me because i doubt it!

- - - - - - - - - -


Wait, there's muliplication in LBP now? What can you multiply? If you can multiply, can't you multiply by 1/2, which is the same as dividing by 2? Forgive my ignorance but I've completely missed this functionality so I don't know what exactly it allows.

Multiplication is available through the AND gate and addition through the OR gate. Signals can be greater than 1. It has been possible for a while. I've been using it since September.
2014-12-04 22:13:00

Author:
Willman4
Posts: 170


I don't know of a way to do division in one frame, but in LBP2 I was getting decent results using a feedback loop to home in on what value, when multiplied by my denominator, equals my numerator.2014-12-04 22:24:00

Author:
LittleBigDave
Posts: 324


I don't know of a way to do division in one frame, but in LBP2 I was getting decent results using a feedback loop to home in on what value, when multiplied by my denominator, equals my numerator.

It's the single frame division that we need!
2014-12-05 08:18:00

Author:
Willman4
Posts: 170


It's the single frame division that we need!
Well since the AND gate divides percentages like so ((X1*X2)/100) so if you input 50 and 50 you'll get 25, so if you want to divide an input by 3 for example just put a timer set to 1s out of 3s and connect it to the AND gate and them connect the number you want to divide into the second input.
The real problem arises when trying to divide two numbers that are only set while the player is playing the level.
2014-12-06 04:50:00

Author:
master3243
Posts: 8


Well since the AND gate divides percentages like so ((X1*X2)/100) so if you input 50 and 50 you'll get 25, so if you want to divide an input by 3 for example just put a timer set to 1s out of 3s and connect it to the AND gate and them connect the number you want to divide into the second input.
The real problem arises when trying to divide two numbers that are only set while the player is playing the level.

The AND gates can multiply any percentages, 1%, 200%, 1000000%. So there is no reason why there shouldn't be division since very great signals can be made there too. We already know how to divide in LBP. The problen is that we can't use variables where division takes one single frame. And the outcome can't be greater than 1 doing so.
2014-12-06 07:49:00

Author:
Willman4
Posts: 170


Not a logic pro, but what is the point in this? You just said they are endless, so can I hear some.2014-12-06 11:23:00

Author:
dyna
Posts: 260


Not a logic pro, but what is the point in this? You just said they are endless, so can I hear some.

Well, for me, trigonometric functions along with the sine wave they gave us. With division we can calculate distances, velocities, pretty much anything. For people who make regular platformers, nothing really.
2014-12-06 14:23:00

Author:
Willman4
Posts: 170


You can already divide by any number you want to. Use a cover and a multiplication AND gate. Wanna divide by 7? Set the counter to max 7, current to 1, and you have a signal equal to 1/7. Multiply that with AND gate, boom you're done. Wanna divide by 17? Set max count to 17 and current to one. Attach to multiplying AND gate. You just gotta think around the box. There really isn't anything such as division; all we do is multiply by reciprocals.2014-12-06 23:54:00

Author:
modernknight
Posts: 13


You can already divide by any number you want to. Use a cover and a multiplication AND gate. Wanna divide by 7? Set the counter to max 7, current to 1, and you have a signal equal to 1/7. Multiply that with AND gate, boom you're done. Wanna divide by 17? Set max count to 17 and current to one. Attach to multiplying AND gate. You just gotta think around the box. There really isn't anything such as division; all we do is multiply by reciprocals.

17 is not a variable..
2014-12-07 11:32:00

Author:
Willman4
Posts: 170


Some uses of this would be
1) for a health system - easily multiply damage received without having to incorporate new numbers each time (though this is possible now)
2) For gameplay logic - I can imagine doing some pretty fun stuff for bosses. How? Finding distances better.
3) Math - because it's useful
4) Score - Create your own score multiplier
5) I'm too tired to come up with more.
Also, now that I think about it, 1 and 4 are possible just in reverse as it is now.
2014-12-08 09:58:00

Author:
koltonaugust
Posts: 1382


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.