DSiWare Forum

Topic: Petit Computer

Showing 3,161 to 3,180 of 9,308

AuthorMessage
Avatar

Bluerobin2

3,161. Posted:

@Morphtorok see how much you're loved? FINISH PETIT PETCRAFT ALREADY! :D.

Btw everyone I made the name.It probably won't be the name of the final version. I hate to take credit for others work...

Is there a more efficient way of:
IF BUTTON(1) THEN SPANIM 0,4,16,0
It works, but if you switch buttons really fast, it wont work...

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Moorpheel

3,162. Posted:

Hah I had forgotten about that!

To be honest I'm kinda rusty and I would probably need to start the project again to be able to understand it (that, and I remember not being completely happy with it and unsure of how fun it would actually be).

Animal Crossing is taking a lot of my gaming time right now too (and my Mom's too, who is using the 3DS right now lol). I'll eventually go back to it.

Edited on by Moorpheel

Moo

Oh look! A Morphloggery.
Oh! eShop Gurus.

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

AuthorMessage
Avatar

Discostew

3,163. Posted:

IAmAPerson620 wrote:

Hey guys! If you know me from the qr sharing thread then you can skip past this. I programmed in VB (Visual Basic) when I was younger, but dropped it. Recently, I found petit computer and decided to give it a shot. I've been doing pretty good, but I still have yet to learn a lot of things, so please expect a lot of questions.

Anyway, first off, I was wondering how to look for "keywords" in an input. For example, in minecraft bukkit, if you say:
I like &4potatoes.
the &4 will make the word "potatoes" red. I know, because of that, it's possible in JavaScript. But can I do it in petit? Please help

Yes it can, but it require a bit more to do. Text color is based on what COLOR is set to, so you would have to do something like this...

PRINT "I like ";
COLOR 13
PRINT "potatoes."
COLOR 0

It prints the first part, changes to Red (which is index 13), prints the next part in red, then sets back to white.

To do this on one line and using ? instead (which is the same as PRINT)...

?"I like";:COLOR 13:?"potatoes.":COLOR 0

"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

Soultic

3,164. Posted:

Heh, I thought Petit pet craft would be done, but i geuss not. Hey ill make a demo of my game to share with everyone, acually, I think ill post it in my next post. Heres some features of it(features finished)
Shooting with your bow(4 directional)
moving(4 directional)
1 boss
2 towns, one house, and a wilderness.
dance minigame
store,gold,and a marraige system


Things to be added
Classes
more of the map
and more bosses
Ive been on petit computer for a while and my game is coming along great!:D Anyways im new here and i need to know how how to make your guy move without having to keep tapping the d-pad to move 3 steps. If you havnt read my previous post im new.(I dont need to spam if you have)
And if you have ideas please tell me. I can post a screenshot or a demo, whichever one, but trust me, its acutally a cool game and the dance minigame is addicting!
Sorry for saying im new so much i didnt realize :P

Edited on by Soultic

"Lets fight fire with fire!" "won't that just burn the house down?"

AuthorMessage
Avatar

camedens

3,165. Posted:

hey does anyone know how to make graphics and if you do can you send me a video about it or tell me how to make good maps like the ones with walls and or grass ps. can you also help me with make sprites (only characters) i know what to use to make both of these i just can use the tool like i want

camedens

AuthorMessage
Avatar

Bluerobin2

3,166. Posted:

@camedens I cannot answer all of your questions right now, but if you want to make maps, use BGPUT, BGFILL or make it easier with DATA. You can also create pre-mad maps using SCED (Or something like that)

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Hale-Bopp

3,167. Posted:

It's awesome to see this thread still going strong after just over a year. I had taken a break from working on my text adventure because I was frustrated with coding music, but I'm back to working on it again anyways. Cleaned up some code and adding more story bits here and there. One of these days I might actually release it. :P

NNID: Hale-XF11

Twitter: HaleaciousB

AuthorMessage
Avatar

Bluerobin2

3,168. Posted:

@Hale-Bopp It seems We have similar tastes when it cones to apps :). Nice to see you here too.

Coukd someone explain how I can use SPCHK()?

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Hairmanban19

3,169. Posted:

Soultic wrote:

Hey guys Im new to this website, not petit computer.Ive seen some of your games and wow,there amazing guys. Im working on a couple projects my self. Heres the three im working on.
OverworlDS- Its a game like Terraria, but its my own sandbox game. Its 2d. It has randomly generated worlds and a few crafting recipes, but thats it.
Soul-A first person shooter. 1 level done.
Hunt-My best and most completed game yet. Your a medevil(sorry for spelling) hunter and theres different towns and i have 1 boss done. Im adding classes and stuff, and so far its on good progression!:D But i wont post a demo yet, because of it being low on features.
Ok thats it but I have a favor to ask someone- Can you post a link to Morphtroids(or Morphtorok, whatever his name is.) Petit pet craft? Thanks and this is my first post. Also what does watch topic do?
EDIT:Im programming on a dsi so I dont have a friend code.

Each of them sound awesome!!!!

Nintendo ID: Hairmanban19. Working on a secret PTC project... If you're wondering why the knight in my profile pic has a shovel, here is the explanation: http://yachtclubgames.com/shovel-knight/

3DS Friend Code: 3136-7615-5907

AuthorMessage
Avatar

Soultic

3,170. Posted:

hairmanban19 wrote:

Soultic wrote:

Hey guys Im new to this website, not petit computer.Ive seen some of your games and wow,there amazing guys. Im working on a couple projects my self. Heres the three im working on.
OverworlDS- Its a game like Terraria, but its my own sandbox game. Its 2d. It has randomly generated worlds and a few crafting recipes, but thats it.
Soul-A first person shooter. 1 level done.
Hunt-My best and most completed game yet. Your a medevil(sorry for spelling) hunter and theres different towns and i have 1 boss done. Im adding classes and stuff, and so far its on good progression!:D But i wont post a demo yet, because of it being low on features.
Ok thats it but I have a favor to ask someone- Can you post a link to Morphtroids(or Morphtorok, whatever his name is.) Petit pet craft? Thanks and this is my first post. Also what does watch topic do?
EDIT:Im programming on a dsi so I dont have a friend code.

Each of them sound awesome!!!!

Thanks! umm this may not be in the right spot

"Lets fight fire with fire!" "won't that just burn the house down?"

AuthorMessage
Avatar

Hale-Bopp

3,171. Posted:

Bluerobin2 wrote:

@Hale-Bopp It seems We have similar tastes when it cones to apps :). Nice to see you here too.

Thanks, I usually find that my tastes are rather unique, so it's always nice to see others hanging around with similar interests.

NNID: Hale-XF11

Twitter: HaleaciousB

AuthorMessage
Avatar

InsertPi

3,172. Posted:

Discostew wrote:

IAmAPerson620 wrote:

Hey guys! If you know me from the qr sharing thread then you can skip past this. I programmed in VB (Visual Basic) when I was younger, but dropped it. Recently, I found petit computer and decided to give it a shot. I've been doing pretty good, but I still have yet to learn a lot of things, so please expect a lot of questions.

Anyway, first off, I was wondering how to look for "keywords" in an input. For example, in minecraft bukkit, if you say:
I like &4potatoes.
the &4 will make the word "potatoes" red. I know, because of that, it's possible in JavaScript. But can I do it in petit? Please help

Yes it can, but it require a bit more to do. Text color is based on what COLOR is set to, so you would have to do something like this...

PRINT "I like ";
COLOR 13
PRINT "potatoes."
COLOR 0

It prints the first part, changes to Red (which is index 13), prints the next part in red, then sets back to white.

To do this on one line and using ? instead (which is the same as PRINT)...

?"I like";:COLOR 13:?"potatoes.":COLOR 0

Thanks! But how do I do it according to keywords in the string?

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

3,173. Posted:

IAmAPerson620 wrote:

Discostew wrote:

IAmAPerson620 wrote:

Hey guys! If you know me from the qr sharing thread then you can skip past this. I programmed in VB (Visual Basic) when I was younger, but dropped it. Recently, I found petit computer and decided to give it a shot. I've been doing pretty good, but I still have yet to learn a lot of things, so please expect a lot of questions.

Anyway, first off, I was wondering how to look for "keywords" in an input. For example, in minecraft bukkit, if you say:
I like &4potatoes.
the &4 will make the word "potatoes" red. I know, because of that, it's possible in JavaScript. But can I do it in petit? Please help

Yes it can, but it require a bit more to do. Text color is based on what COLOR is set to, so you would have to do something like this...

PRINT "I like ";
COLOR 13
PRINT "potatoes."
COLOR 0

It prints the first part, changes to Red (which is index 13), prints the next part in red, then sets back to white.

To do this on one line and using ? instead (which is the same as PRINT)...

?"I like";:COLOR 13:?"potatoes.":COLOR 0

Thanks! But how do I do it according to keywords in the string?

You can't, not without processing the string yourself by examining each individual character in them to check for those keywords, which you would have to implement yourself, both the process and how to deal with keywords. The example you showed is something built-in to that programming environment and done automatically. That is something not built into PTC.

"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

InsertPi

3,174. Posted:

Discostew wrote:

IAmAPerson620 wrote:

Discostew wrote:

IAmAPerson620 wrote:

Hey guys! If you know me from the qr sharing thread then you can skip past this. I programmed in VB (Visual Basic) when I was younger, but dropped it. Recently, I found petit computer and decided to give it a shot. I've been doing pretty good, but I still have yet to learn a lot of things, so please expect a lot of questions.

Anyway, first off, I was wondering how to look for "keywords" in an input. For example, in minecraft bukkit, if you say:
I like &4potatoes.
the &4 will make the word "potatoes" red. I know, because of that, it's possible in JavaScript. But can I do it in petit? Please help

Yes it can, but it require a bit more to do. Text color is based on what COLOR is set to, so you would have to do something like this...

PRINT "I like ";
COLOR 13
PRINT "potatoes."
COLOR 0

It prints the first part, changes to Red (which is index 13), prints the next part in red, then sets back to white.

To do this on one line and using ? instead (which is the same as PRINT)...

?"I like";:COLOR 13:?"potatoes.":COLOR 0

Thanks! But how do I do it according to keywords in the string?

You can't, not without processing the string yourself by examining each individual character in them to check for those keywords, which you would have to implement yourself, both the process and how to deal with keywords. The example you showed is something built-in to that programming environment and done automatically. That is something not built into PTC.

I would consider doing that, but that would be way to complex. Thanks for telling me! Saved me days of google searching.

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

KaiserD

3,175. Posted:

hairmanban19 wrote:

I love choose your own adventure style games!

Thanks :)
I plan on putting it into seperate chapter releases, each with the next part for everyone.
The first release will have the prologue and chapter 1, with 3 endings if i remember correctly. Each ending will continue onto separate stories in chapter 2 when i keep it up. Ive never done this before and its a lot of work but fun. Been recently working on custom music and such, though i might take some samples from other sources... I really like the King of Thorn theme, i wanna make it.

WIP:
Natura Deity - Chapter 1 - A choose your own adventure game with more emphasis on story than just the random events occuring

AuthorMessage
Avatar

Discostew

3,176. Posted:

Probably something people knew already, but I just found out that SWAP isn't just limited to individual variables, but can also be used for array elements. Not just that, but you can swap between an array element and a normal variable, like...

DIM AB(20)
AB(1)=30
BA=40
SWAP AB(1),BA
? AB(1);",";BA

prints "40,30"

"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

KaiserD

3,177. Posted:

btw how do you loop bgm? really wanna know how

edit: nvm think i figured out how, also found out you can store a number into a variable and change song based off of number in the variable

so bgmplay 1
song = 128
wait 60
bgmplay song

it definitely works, though you need a song for 128, if this helps anyone i'm glad to be of service

edit edit: also found out one way to loop my music in the background without having to manually recheck.
I just added a bgmchk to the loop that waits for you to push a to get to the next bit of text.
so now if i wanna change song out of nowhere, i can just do:
x = 1
bgmplay x
@pusha
if button = 0 then goto @next
wait 1
goto @pusha
@next
if button = 16 then goto @nexta
if bgmchk = 0 then bgmplay x
wait 1
etc

logically, i see no errors! this allows me to change songs at will with 2 lines of code, as well as repeat easily since i have no idea how to do it otherwise, all while being able to help those who might be curious :)

Edited on by KaiserD

WIP:
Natura Deity - Chapter 1 - A choose your own adventure game with more emphasis on story than just the random events occuring

AuthorMessage
Avatar

Discostew

3,178. Posted:

@KaiserD

From what I understand, the pre-set music already loops by itself. Some of the "jingles" don't though, but those weren't meant to be looped. If you're talking about self-made music looping, then take note that you can add looping within the music you make, using "[" where you want the loop to begin and "]" where you want the loop to end and repeat within the strings. The ending of the loop via "]" can be set with a number right after to determine how many times to loop, like "]2" means loop twice. Leaving it blank or setting it to 0 means loop forever. The number is also part of the list of items that can be changed using BGMSETV.

"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

InsertPi

3,179. Posted:

The DIM command in PTC is a LOT different than Visual Basic (my first programming language). In VB, it's used like this:
INPUT ABC
DIM ABC AS STRING
DIM in VB is used to define the type of input. So instead of ABC or ABC$ in PTC, in VB, you "DIM" as either a string, variable, or boolien (a true/false statement).

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

Bluerobin2

3,180. Posted:

VB is what I like to call the JSON style of BASIC... I never really liked VB. I use JB (Just BASIC), which is pure, 100% BASIC.

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126