DSiWare Forum

Topic: Petit Computer

Showing 641 to 660 of 2,745

AuthorMessage
Avatar

GrabSomeEyes

641. Posted: Fri 28th Sep 2012 21:27 BST

@Metabble_King if I remember correctly, @Morphtroid has had some experience outside of BASIC.
I think a few people here at least do a little outside of BASIC, but I can't really speak for them.
I can speak for Morphtroid, but none else.

Eos OS: http://conlogxl.forumotion.com/t12-eos-os-v10
3DS FC: 3695-0514-5044

AuthorMessage
Avatar

Morphtorok

642. Posted: Fri 28th Sep 2012 21:57 BST

Eh just mostly Game Maker and small school-related projects on other languages (C#, Java, etc). Nothing too serious.

The first real non-Game Maker language I used was actually BASIC in high school, my school was very outdated.
After BASIC we used old school Pascal and C. Fun times.
I was usually the only one who enjoyed programming though. Huh.

Oh look! A Morphloggery. Oh, and a Morphsite too.

3DS Friend Code: 0173-1330-0080

AuthorMessage
Avatar

Shadow1364

643. Posted: Sat 29th Sep 2012 01:20 BST

Just posted my first program to the QR thread. Check it out and comment! ^-^

FC: 1934-1622-0902

AuthorMessage
Avatar

LittleKing

644. Posted: Sat 29th Sep 2012 05:30 BST

Morphtroid wrote:

Eh just mostly Game Maker and small school-related projects on other languages (C#, Java, etc). Nothing too serious.

The first real non-Game Maker language I used was actually BASIC in high school, my school was very outdated.
After BASIC we used old school Pascal and C. Fun times.
I was usually the only one who enjoyed programming though. Huh.

Ah, thanks. Explains why you're so good at this! I was interested because some people here are pretty good at using Petit Computer and BASIC, so I thought maybe a few had done other stuff before. Having learned C as my first language and making a basic RPG battle engine in that, and then moving into Objective-C, it seems that BASIC is a better starting point than I thought. Through it you can learn about basic loops and subroutines, and do some pretty cool stuff without getting too complex. I always tend to write out anything more complex in pseudocode first, which, quite frankly, often looks kind of like BASIC! xD

I like programming since it allows one the freedom to create. If you think about it, you can basically make whole worlds! It's kind of like a step up from LEGO and K'Nex. :p

Just wondering, but how do you guys handle collision detection in BASIC games? In Obj-C I've had to make my own physics classes which work on my own prediction based collision algorithm to detect and limit positional offsets based on object velocities each frame so that objects don't overlap. Do you just see if sprites overlap and correct their positions so that they don't after the fact, or what? This seems most likely to me since most collision correction is post-collision, and not pre-collision.

LittleKing

AuthorMessage
Avatar

Morphtorok

645. Posted: Sat 29th Sep 2012 05:38 BST

I like programming since it allows one the freedom to create. If you think about it, you can basically make whole worlds! It's kind of like a step up from LEGO and K'Nex.

That is very true :D

About collisions, Smile Basic comes with its own set of sprite-based collision detection functions, it's pretty easy just look at the part of the manual that explains it (and if you have any further questions, feel free to ask them here).
I think the most basic form of detection is just checking if "sprite A" is "touching" "Sprite B", though there are other commands.
I haven't really experimented a lot with that. Maybe next time I do something with sprites.

Oh look! A Morphloggery. Oh, and a Morphsite too.

3DS Friend Code: 0173-1330-0080

AuthorMessage
Avatar

ramstrong

646. Posted: Sat 29th Sep 2012 06:42 BST

Metabble_King wrote:

Just wondering, but how do you guys handle collision detection in BASIC games? In Obj-C I've had to make my own physics classes which work on my own prediction based collision algorithm to detect and limit positional offsets based on object velocities each frame so that objects don't overlap. Do you just see if sprites overlap and correct their positions so that they don't after the fact, or what? This seems most likely to me since most collision correction is post-collision, and not pre-collision.

Didn't I just post Sprite Collision Tutorial program? Anyway, if you don't want to correct their position after the fact, you can use SPCOLVEC to define velocities.

The truth is, for every BASIC dialect, there's still learning curve to be had. I have to learn Sprites and Background, for example, not having Game Maker experience. Also, the FOR loop abuse to act as Multi-line IF, WHILE, REPEAT are new to me. There are things that I've learned before, such as page flipping. But the most difficult thing to learn is overcoming prejudice. To think that if you know old BASIC, you'd be good at this, is to miss great opportunity to learn it well. I still have to learn MML as well, but really, I don't see how anybody can miss how to play MML once you have the strings. It's right on the help menu, and they give you the program to do it, instead of just a reference.

I do a lot of experimentations, but try to avoid real-time game for now. Some things I do know. Having experimented with GPAINT, I know that it can be very slow. Also, SPOFS with timing can be extremely useful. It allows you to create games with resolution longer than 1/60 per second. In effect, Uncle Sporky's inability to understand how SPOFS extension works is detrimental to his DQ map demo, stuttering with diagonal movement.

In reality, the games you see in stores features a lot of tricks to max out the device. It's not something a beginner can do easily. There are some exceptions. Tetris for one. Picross is also easy. I did the core Picross in a couple hours, and I have a version with editor built-in for making puzzles. So, it's what you want to do, really. Then do it. Then, either you optimize it proper, or you cut features until you're satisfied.

You know C language, so you should be good with this, too! C is not a big language, afterall. You need to build your own tools, right? This should be easy to do after that!

Petit Computer Journal
http://ramstrong.blogspot.com
(New) Art Academy pictures
https://skydrive.live.com/redir?resid=3768290E373AEE41!300

3DS Friend Code: 1091-7596-4855

AuthorMessage
Avatar

swordx

647. Posted: Sat 29th Sep 2012 13:24 BST

Hey guys! The Mega Man 2 demo (not made by me) can be found by following the link below!

http://lazerlight.x10.mx/projects/megaman-2-ptc/megaman-2-ptc...

swordx

AuthorMessage
Avatar

Sprite

648. Posted: Sat 29th Sep 2012 18:16 BST

I'm having trouble doing something.
I tried loading my charecter with
CHRREAD("VEIN",VEIN),C$
I looked on morphiod's post on the tutorial to find this out but it says
Illegal rescource type (25, CHRREAD)
Could someone help me with this and tell me why it failed

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens. Friend Code: 1075-1228-4183
Yeah I got problems. DEAL WITH IT!
(o0)
/_

AuthorMessage
Avatar

Morphtorok

649. Posted: Sat 29th Sep 2012 18:38 BST

Wait... Are you loading your character (Which I will assume is a sprite) with CHRREAD?

To load a sprite you need to use SPSET, look the manual to see the correct parameters. It's easy.

CHRREAD is used to other things. I don't think I have ever used it myself.

Of course I may be missing something... Could you rephrase your question with more information?

Edited on Sat 29th September, 2012 @ 18:56 by Morphtorok

Oh look! A Morphloggery. Oh, and a Morphsite too.

3DS Friend Code: 0173-1330-0080

AuthorMessage
Avatar

ramstrong

650. Posted: Sat 29th Sep 2012 18:46 BST

@Sprite
Please delete your post in Tutorial thread. That thread is only for tutorial, not for asking question. Also, please make your upcoming program announcement in this thread, not in QR post thread. That's only for QR.

Petit Computer Journal
http://ramstrong.blogspot.com
(New) Art Academy pictures
https://skydrive.live.com/redir?resid=3768290E373AEE41!300

3DS Friend Code: 1091-7596-4855

AuthorMessage
Avatar

MagicLink95

651. Posted: Sat 29th Sep 2012 18:59 BST

Would you recommend this to someone that would just like to play others creations? I don't really like coding in BASIC. I prefer other languages, but people seem to be making cool games with this.

Formerly Cr1TiKaL
Swift wings of (Kid) Icarus what was that?

3DS Friend Code: 3909-7508-7026 | Nintendo Network ID: MagicLink95 | Twitter: LukeM

AuthorMessage
Avatar

Sprite

652. Posted: Sat 29th Sep 2012 19:01 BST

I didn't post anything in the QR colum.
Also thanks Morphiod

Edited on Sat 29th September, 2012 @ 19:03 by Sprite

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens. Friend Code: 1075-1228-4183
Yeah I got problems. DEAL WITH IT!
(o0)
/_

AuthorMessage
Avatar

Morphtorok

653. Posted: Sat 29th Sep 2012 19:02 BST

That was @bloodofgore.

Oh look! A Morphloggery. Oh, and a Morphsite too.

3DS Friend Code: 0173-1330-0080

AuthorMessage
Avatar

ramstrong

654. Posted: Sat 29th Sep 2012 19:34 BST

Speed Painting Demo using Petit Computer paint program: http://youtu.be/-PzTItRNykQ
Paint Program Demo for the above: http://youtu.be/tYc6zriwEuA
Petit Computer Program Collection: http://youtu.be/X0cfg7ZCqaU

Petit Computer Journal
http://ramstrong.blogspot.com
(New) Art Academy pictures
https://skydrive.live.com/redir?resid=3768290E373AEE41!300

3DS Friend Code: 1091-7596-4855

AuthorMessage
Avatar

ramstrong

655. Posted: Sat 29th Sep 2012 19:42 BST

LordSEGA95 wrote:

Would you recommend this to someone that would just like to play others creations? I don't really like coding in BASIC. I prefer other languages, but people seem to be making cool games with this.

Sure. At $8 investment, you can get a lot of free programs. Not only that, even if you prefer other computer languages, the source code is right there, so you can port the program to other languages if you want.

Petit Computer Journal
http://ramstrong.blogspot.com
(New) Art Academy pictures
https://skydrive.live.com/redir?resid=3768290E373AEE41!300

3DS Friend Code: 1091-7596-4855

AuthorMessage
Avatar

bloodofgore

656. Posted: Sat 29th Sep 2012 20:29 BST

I'm having a bit of trouble here.

61 IF BTRIG()=1 THEN GOTO @CH3
62 IF BTRIG()=2 THEN GOTO @CH2

Then when I run it

Syntax error (61, IF)

bloodofgore

AuthorMessage
Avatar

Morphtorok

657. Posted: Sat 29th Sep 2012 22:55 BST

Smile Basic uses == instead of = when using IF.

Normal BASIC - Smile Basic
=............................ ==
<>.......................... !=

Edited on Sat 29th September, 2012 @ 22:55 by Morphtorok

Oh look! A Morphloggery. Oh, and a Morphsite too.

3DS Friend Code: 0173-1330-0080

AuthorMessage
Avatar

Sprite

658. Posted: Sat 29th Sep 2012 23:04 BST

@ramstrong
Yet you don't yell at the other guy on the tutorial

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens. Friend Code: 1075-1228-4183
Yeah I got problems. DEAL WITH IT!
(o0)
/_

AuthorMessage
Avatar

Morphtorok

659. Posted: Sat 29th Sep 2012 23:08 BST

Sprite wrote:

@ramstrong
Yet you don't yell at the other guy on the tutorial

If by other guy you mean TheBlackDragon, she's a forum moderator who noticed your comment was misplaced and wrote you a note.
She will probably notice you deleted your comment and will delete hers too, later... Or leave it there so she doesn't need to write it again. Idk.

Edited on Sat 29th September, 2012 @ 23:10 by Morphtorok

Oh look! A Morphloggery. Oh, and a Morphsite too.

3DS Friend Code: 0173-1330-0080

AuthorMessage
Avatar

Sprite

660. Posted: Sat 29th Sep 2012 23:46 BST

How do you load a specific custom charecter with spset

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens. Friend Code: 1075-1228-4183
Yeah I got problems. DEAL WITH IT!
(o0)
/_