Forums

Topic: Petit Computer

Posts 8,441 to 8,460 of 9,674

twinArmageddons

is it possible to make a calculator that can handle really large numbers by using STR$() and VAL()?

get in loser we're going titan hunting

Nintendo Network ID: merp_aottg

randomous

@twinArmageddons You couldn't VAL() a string if the value is larger than a Petit Computer decimal variable will hold (similarly, you can't STR$() a number which is larger than Petit Computer can handle). For instance, you couldn't do something like VAL("1234567"). However, if you wanted to, you could perform math on arbitrarily large numbers (and with arbitrarily precise decimals) if you stored the numbers as strings only and treated each character as a digit. You'd have to implement all the math yourself though.

randomous

JLMan

twinArmageddons wrote:

is it possible to make a calculator that can handle really large numbers by using STR$() and VAL()?

Not that I know of. Unless you forgot about the VAL stuff in create a system that can add, subtract, multiply, and divide strings without using VAL. However, you could make a system that adds, subtracts, multiplies and divides numbers stored with variables ONES, TENS, HUNDREDS, until you reached a really high place i.g. trillions or higher.

-

twinArmageddons

randomous wrote:

However, if you wanted to, you could perform math on arbitrarily large numbers (and with arbitrarily precise decimals) if you stored the numbers as strings only and treated each character as a digit. You'd have to implement all the math yourself though.

that's what i meant, thanks. i may try making a calculator that does this later

get in loser we're going titan hunting

Nintendo Network ID: merp_aottg

Fadeintodust

I've ran into a snag.
I want it so, that when the Y button is held, the instant up or down is pressed, a value will either go up or down.
IF (BUTTON AND 128) AND (BTRIG AND 1) seems to work, but not when trying to do the same for the down button.

Fadeintodust

Lego-Meister

You could just do IF BTRIG AND 129 for up and IF BTRIG AND 130 for down.

Some programmers pride themselves on how many more lines of code they can write. I pride myself on how many less.

Nintendo Network ID: Legos-Meister

Fadeintodust

Lego-Meister wrote:

You could just do IF BTRIG AND 129 for up and IF BTRIG AND 130 for down.

Doesn't quite work the way I want it to. It'll only change the value, if Y and Up or Down is pressed at the same time. I wanted it so that player could hold the Y button, and press up or down to change the value.

I have found a solution though.
IF {BUTTON() AND 128) + (BTRIG AND 1)==129
Seems to work fine. Although, I wonder if there's a better way to do this.

Fadeintodust

twinArmageddons

Untitled
aot 3d, another distraction from my other projects
it uses 32x32 textures, and that weird thing in the back is a titan and it looks ugly from this distance
Edit: now you can choose between 8x8 16x16 or 32x32 textures to help with lag, and i started programming some 3dmg

Edited on by twinArmageddons

get in loser we're going titan hunting

Nintendo Network ID: merp_aottg

MechaPikachu

@Fadeintodust have you tried something like "IF (BUTTON()==128) AND (BTRIG()==1) THEN VALUE =VALUE+1" and "IF (BUTTON()==128) AND (BTRIG==2) THEN VALUE=VALUE-1" on another line? If it's a trigger that you're looking to use, try setting another IF statement stating when a certain event will take place like, "IF VALUE=1 THEN {GOTO, GOSUB,or other command} ELSE {COMMAND}" and reset the value of your variable in a subroutine or in your main loop if needed.

These are not the codes you are looking for.

MechaPikachu

@twinArmageddons glad to see someone is as obsessed with AoT as I am here. I had an idea to possibly create a simple, dumbed down version of Final Fantasy in the theme of AoT but I'm definitely not of that skill level yet.

These are not the codes you are looking for.

damolii

Yea... that. XD

Anyways I posted my entry for the contest. It's only music and PRINT. though......

P.S: It's called "Merry " including the "".

Edited on by damolii

I don't have a 3DS so what do I put here? -Damolii

Pixelrobin

@randomous how do you control quarter, full and half notes in mml?

Everybody do a chirp. CHIRP.

MechaPikachu

@Bluerobin2 You need to place the number designating the length of the note after the name of the note in the MML.
Ex. B1 is a whole note, C2 is a half note, F#4 is a quarter, G8 is an eighth...etc, etc. Might I add, if you need to make a note last for two bars, you'll use "&" like "B1&B1" lasts for 8 counts.

These are not the codes you are looking for.

Pixelrobin

Oh thanks! I knew about the slur thought

Everybody do a chirp. CHIRP.

MechaPikachu

@Bluerobin2 You're welcome! And I was just adding it in just in case.

These are not the codes you are looking for.

twinArmageddons

MechaPikachu wrote:

@twinArmageddons glad to see someone is as obsessed with AoT as I am here. I had an idea to possibly create a simple, dumbed down version of Final Fantasy in the theme of AoT but I'm definitely not of that skill level yet.

i thought i was the only one
if you like aot then you should try aottg
http://petitcomputer.wikia.com/wiki/Attack_on_Titan_Tribute_Game
[shameless advertising]

get in loser we're going titan hunting

Nintendo Network ID: merp_aottg

Slayer

MCDS lag reduction? I downloaded 1.9 and my FPS is about 1 or 2. I need better FPS.

I have nothing really to say about myself.

InsertPi

0Games wrote:

MCDS lag reduction? I downloaded 1.9 and my FPS is about 1 or 2. I need better FPS.

The lag reduction only helps when you adjust video settings. My video settings:

Quality : 8-10
Raytracer: off
Screen Width: ~2/3

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

Nintendo Network ID: IAmAPerson620 | Twitter:

Pixelrobin

The Wiki Holiday theme contest is over! Comunity votes starting saturday! Vote guys! Also check out my horrible mess of a game - "Winter Shopping Spree"!

What? A link? No, you go on the wiki and find it so you can see the other entries.

Everybody do a chirp. CHIRP.

Pixelrobin

I'm now official graphic designer of the PTC wiki!

I made the new logo and making a new background!

Thanks Brian!

Everybody do a chirp. CHIRP.

Top

Please login or sign up to reply to this topic