DSiWare Forum

Topic: Petit Computer

Showing 4,121 to 4,140 of 9,431

AuthorMessage
Avatar

InsertPi

4,121. Posted:

@bloodofgore here's how to make custom music:

DATA ":0@1T120O4V100"

This is the first step. The :0 means to play on channel 0. There can be up to 8(?) channels playing at once. The @1 means to play a piano. The T120 means to play at a tempo of 120 bpm. The O4 means to start in the 4th octave. V100 means to play at a volume of 100.
There's where you start. Now to make the music!

DATA "C4D4E4F4G4A4B4<C4"

This plays a C major scale. The syntax for this is <Note><Kind of note>. Note means as in C, E, etc. Kind of note means quarter (4), eighth (8), etc. If you were to just put:

DATA "C4D4E4F4G4A4B4C4"

then it would play, but the last C is in the wrong octave! More symbols! < means "up an octave". > means "down an octave". So you'd do B4<C4. Now, you may be saying "that's a lot of 4s!" Don't worry! The default note is a quarter note, so you can actually put:

DATA "CDEFGAB<C"

Now for some final things to note. - and + after a note means flat and sharp respectively. R means rest, and can be treated the same as a note when doing R2. To finish it off, you need to put:

DATA 0

This means that the song has ended. When you finish, it should look like this:

@SONGDATA
DATA ":0@1T120O4V100"
DATA "A2<C2D2D2+E2G2A2"
DATA 0

This is the code for the A minor scale. To play the music, do this:

BGMCLEAR 128
BGMSETD 128,@SONGDATA
BGMPLAY 128

BGMCLEAR means to get rid of any track on 128. BGMSETD sets the data under @label to the number you chose. BGMPLAY just plays the music.
There you go! Custom music!

Edited on by InsertPi

Main developer and programmer of Minecraft DS!

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

KennyBob

4,122. Posted:

I started making the first "room" using the tiles I made. I'm not done making tiles yet but I have a good start. The project isnt anywhere close to finish but Im trying to put as much detail in the game as possible.

Edited on by KennyBob

I'm Kenny, KennyBob

AuthorMessage
Avatar

damolii

4,123. Posted:

slayer wrote:

IAmAPerson620 wrote:

Yay I just made my first thing with sprites! Lol not much all it is is a SPSET command and a couple SPOFS commands.

Loading sprites has always been more difficult than it ever looked.

Not really lol. I started using sprites my second day of PTC. Now backgrounds, that's a different story XD

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

AuthorMessage
Avatar

InsertPi

4,124. Posted:

damolii wrote:

slayer wrote:

IAmAPerson620 wrote:

Yay I just made my first thing with sprites! Lol not much all it is is a SPSET command and a couple SPOFS commands.

Loading sprites has always been more difficult than it ever looked.

Not really lol. I started using sprites my second day of PTC. Now backgrounds, that's a different story XD

Second day?!?! It's been over a month for me and I just now learned how!

Main developer and programmer of Minecraft DS!

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

Hairmanban19

4,125. Posted:

I set up a wiki page for that first person RPG i made a while ago. Surprisingly,i have been getting a lot of praise for it!

...

3DS Friend Code: 3136-7615-5907

AuthorMessage
Avatar

Discostew

4,126. Posted:

damolii wrote:

slayer wrote:

IAmAPerson620 wrote:

Yay I just made my first thing with sprites! Lol not much all it is is a SPSET command and a couple SPOFS commands.

Loading sprites has always been more difficult than it ever looked.

Not really lol. I started using sprites my second day of PTC. Now backgrounds, that's a different story XD

Heh, sounds like the opposite for me. Sprites on the actual hardware was one thing, but the way PTC handles sprites didn't click with me at first. Backgrounds, however, seemed more in line with how I handled them on the actual hardware and with previous handhelds devices.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

AuthorMessage
Avatar

damolii

4,127. Posted:

Discostew wrote:

damolii wrote:

slayer wrote:

IAmAPerson620 wrote:

Yay I just made my first thing with sprites! Lol not much all it is is a SPSET command and a couple SPOFS commands.

Loading sprites has always been more difficult than it ever looked.

Not really lol. I started using sprites my second day of PTC. Now backgrounds, that's a different story XD

Heh, sounds like the opposite for me. Sprites on the actual hardware was one thing, but the way PTC handles sprites didn't click with me at first. Backgrounds, however, seemed more in line with how I handled them on the actual hardware and with previous handhelds devices.

Sprites always made more sense to me. Even now, I try to not use complex backgrounds. But the way my walking engine is made, I'm gonna have to find a way to use backgrounds for battles. I'm gonna need a grass background, so when you mingle in that certain background, it triggers a battle. Kinda like Pokemon.

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

AuthorMessage
Avatar

swordx

4,128. Posted:

I find sprites easyyyyyy. However, the only background commands I kno of are BGFILL and the load commands. Sprites are much better.

I saw that Waffle confessed on the PTC Wiki...I knew it...

swordx

AuthorMessage
Avatar

bloodofgore

4,129. Posted:

I'll repeat my question if you guys don't mind :3

How do I make something happen when said player goes over a specific tile. For example, stop the play from moving into a wall, make a play die when they enter water, etc.

bloodofgore

AuthorMessage
Avatar

Hairmanban19

4,130. Posted:

Can you load sprites into a program while a SCRED file is loaded in a program at the same time? Cause @TwinArmageddonz is making me some sprites for the full game of my first person RPG,and i just wanted to know if i could load those sprites into my program while a SCRED file is loaded into it to make it look like the sprites are in the SCRED file. Or should i only use sprites and no SCRED files?

...

3DS Friend Code: 3136-7615-5907

AuthorMessage
Avatar

InsertPi

4,131. Posted:

Just added togglable map sizes! Thru the options menu, you can change 16x16 or 32x32 maps! Tomorrow I will replace jump with sprint and start on saving, and possibly finish saving this Saturday! Which means? The last version of Alpha this Sunday! Uugghhhh... Now I get to have fun making more blocks with block IDs... :( (hlp me plz dis hrts mi breen o nu i dun leik hrt breen)

Main developer and programmer of Minecraft DS!

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

InsertPi

4,132. Posted:

swordx wrote:

I saw that Waffle confessed on the PTC Wiki...I knew it...

I think we all did

Edited on by InsertPi

Main developer and programmer of Minecraft DS!

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

InsertPi

4,133. Posted:

Hairmanban19 wrote:

Can you load sprites into a program while a SCRED file is loaded in a program at the same time? Cause @TwinArmageddonz is making me some sprites for the full game of my first person RPG,and i just wanted to know if i could load those sprites into my program while a SCRED file is loaded into it to make it look like the sprites are in the SCRED file. Or should i only use sprites and no SCRED files?

I'm not sure if you can load in SCR files while another SCR file is already open in SCREWED, but you can try!

Main developer and programmer of Minecraft DS!

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

Discostew

4,134. Posted:

bloodofgore wrote:

I'll repeat my question if you guys don't mind :3

How do I make something happen when said player goes over a specific tile. For example, stop the play from moving into a wall, make a play die when they enter water, etc.

This is one of the more difficult subjects because it deals with collision detection with the background layers, which means you'll have to code it all yourself. Sprites have this feature built in, so what people have done is made "invisible" sprites, and placed them in areas where things are, like a wall, and determined if the player sprite is colliding with this "sprite wall" with SPHIT. You can do the same thing with deadly water, but you need to figure out how to distinguish a wall and deadly water. You can store values in the sprites with SPSETV, like 1 is a wall, and 2 is water, then when you collide, you read these values using SPGETV, and deal with the situation however you want.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

AuthorMessage
Avatar

Morphbug

4,135. Posted:

Yay project update, with rivers comes fishing and I also added a bunch of currently useless new items.

I still need to figure out the details about how will these items be distributed though... I don't want to program extra areas or npcs. Oh well, time will tell.

Oh look! A Morphloggery.
Oh! eShop Gurus.

3DS Friend Code: 0173-1330-0080 | Nintendo Network ID: Abgarok

AuthorMessage
Avatar

swordx

4,136. Posted:

Hairmanban19 wrote:

Can you load sprites into a program while a SCRED file is loaded in a program at the same time? Cause @TwinArmageddonz is making me some sprites for the full game of my first person RPG,and i just wanted to know if i could load those sprites into my program while a SCRED file is loaded into it to make it look like the sprites are in the SCRED file. Or should i only use sprites and no SCRED files?

You can. My title screen for Dungeon Adventure does it.

swordx

AuthorMessage
Avatar

randomous

4,137. Posted:

@Morphtorok Wait, fishing AND bug catching? This is sounding mighty fishy... Lol just kidding, this looks awesome! I can't wait to try even a preview (I've already tried the old one you had before).

randomous

AuthorMessage
Avatar

Thecoolguy617

4,138. Posted:

Im not requesting anyone.. just tosing around some ideas... Hows about sonic on petit computer?

Thecoolguy617

AuthorMessage
Avatar

Bluerobin2

4,139. Posted:

Arduino + TVout library = TV programming. I'll be busy making my own console guys! I love this!

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Slayer

4,140. Posted:

I always loved playing Sonic. I thought about that but I think I'll make a fighting game next after I'm done with Apocalypse Rising and my other fighting..wait a minute, two???
Anyway I might not be working for a while because I resurrected my old PSP.

"Hello sir, may I take your order?"
"Yes, I'll have a cheeseburger and fries..."
"I AM the cheeseburger and fries!"
Things you need to know about me:
I hate Texas.