Forums

Topic: Petit Computer

Posts 2,641 to 2,660 of 9,676

boot

I just charged up my ds... after 3 months. just for the proggramm

Just your average talking boot. FC: 0791-4881-1672 for Smash and Pokemon.

boot

Is there any way to loo up and down? I also cant seem to turn around after I walk backwords from spawn,can you fix that? And last thing,is there a way to make it go faster? Sorry for all the complaints.

Just your average talking boot. FC: 0791-4881-1672 for Smash and Pokemon.

Discostew

TexMurphy wrote:

What is the code for collision detection between a sprite character and a background tile in an array? I can detect it only at the origin/home of the sprite and background tile. But, the tile is 8 pixels wide. I can change the home position on the sprite. This would help on a side scroller.

I don't know how you're doing it now, but the way I do it is that my levels are made up of tiles in an array, each element representing a tile value. My sprites have an X/Y position within a level. The collision boundaries are offsets of that position. I take those offsets (relative to the entire level), divide the X/Y values by 16 (I use 16x16 meta tiles, but for 8x8 tiles, divide by 8) to convert it to tile space. Then I use that result and access the array that holds the tile information of the level. I then access another array that holds the attributes of each tile, using the tile value I grabbed from the level array. Each element can hold multiple attributes in bit-form (like 1 = solid block, 2 = ladder, 4 = water, 8 = deadly spike, etc). I then simply examine the tile attributes and how I react to them, like if I'm moving right, and I find the tile I examined is a solid block, then I shift the sprite to the left, making it flush against the tile.

to reduce the amount of examining, only examine the sides that the sprite is moving along. If you're moving to the left, only examine the boundaries on the left side. If you've moving up, only examine the boundaries on the top. The likelihood if needing to examine all opposite sides is very minimal.

As a dev of blargSNES, just stop with the claims that o3DS can emulate SNES games accurately @ 60fps. It cannot.

Nintendo Network ID: Discostew

Zack56144

Hello everyone! i have little BASIC experience so i decided to come here and maybe get some tutorials so anyways thats it! add me if you want

Im Not Purple! >:|

IAmSpike

Someone should make an account called LOOP

ya know, when we type @LOOP
heh

Previously Philip.

The most paranoid person on the net!

boot

@loop
cls
print "that's pretty funny"
Print "you beat me to making the account"
wait 300
cls
End

Just your average talking boot. FC: 0791-4881-1672 for Smash and Pokemon.

Pixelrobin

Actually it was me. "@Loop" got banned. It was a pretty stupid thing to do. Sorry admins.

Everybody do a chirp. CHIRP.

boot

I'm using the 3d room sample and making an awesome game

Just your average talking boot. FC: 0791-4881-1672 for Smash and Pokemon.

randomous

Edit: The download link for this is a few posts down: http://www.nintendolife.com/forums/dsiware/petit_computer?sta...

How interested would you guys be in a program that automatically stitches qr codes together? I noticed that everyone seems to post a custom stitched png image (or separate images, like me), so I figured there wasn't really a good program to do so. I just got one up and running, but it's only for Windows. Does anybody actually want a program like this, and if so, what sort of features would you like? Right now, it just produces images that look like this:

Untitled

You can also specify the width, so that same set of qr's can look like this:

Untitled

Edited on by randomous

randomous

IAmSpike

@randomous That looks awesome. Gimme.

Previously Philip.

The most paranoid person on the net!

randomous

Alright, hopefully this works for everybody: http://db.tt/EdcuAEPc

Untitled

That is the PTCQRStitch program that I made to make life easier when posting QR codes. This program stitches together an unlimited number of QR code images into a single, clean png file.

The program only runs on Windows (sorry)
The program requires Microsoft .NET Framework 4.0 (errr... I think you can download it here: http://www.microsoft.com/en-us/download/details.aspx?id=17851 )

Let me know if you have issues or you want more features (it's super basic right now).

Edit: Whoops, I fudged up the first one, so the link is now directed at the new one. The old one would place QR's out of order if you had more than 9. This should be fixed now.

Edit2: If anybody wants to play with it, it's written in C#. Here's the project, which contains the source code: http://db.tt/eJ9vdUiU

Edited on by randomous

randomous

Hamjam00

IM BACK!
ive been toying around with PTC now that my homework has kinda died down bc of summer, so i might get back on regularly again.
IS THAT MICROSOFT VISUAL BASIC???!!!! AWESOME!

Edited on by Hamjam00

Python, C/C++, Lua, Ruby rule (java is too complex lol)

Twitter:

randomous

@Hamjam00 @Bluerobin2 Haha it does look like that, doesn't it? I'm sorry, but it's not Visual BASIC. It's all the same framework though, so from just the looks of it, you couldn't really tell. It's C#, so it's more along the lines of a combination of Java and C++.

Edited on by randomous

randomous

Pixelrobin

@randomouscrap98 Cool. I got into Visual BASIC a bit but quit when I realized that it is very different from actual BASIC. I'm actually a bit more in web-based programming. I'm thinking of trying script.google.com (Think of it as Visual Javascript). And I'm going more towards Java (Yes I know it is different than javascript) because it can be run both online and off (ex. Minecraft).
Why do you need Microsoft framework or something like that? From my experience, Visual BASIC did not need it.
Oh yeah, I am also learning arduino code (Similar to C) and might start some python for the raspberry pi computer (I am into digital robotics/electronics if you were wondering).
I think my next PTC Project will be a code compiler for a "So simple its something a dummy can learn" Program. You know, just for the heck of it.
One question though, Have you ever heard of tinybasic? What is it? How is it different than BASIC? Also have you ever heard of lolcode?

@Gimmiemorecoinz I've actually attempted creating a "chatbot" I called it 'YAK' for no apparent reason . If it did not understand a word, It would ask for a similar word it already knows and then will store it in its 'Database'. Alas, It got deleted. Good luck on your project though.

@Hamjam00 Nice to have you back! I knew you would return. I just knew it . You cannot abandon PTC, you just can't...

Everybody do a chirp. CHIRP.

MrSirr

randomouscrap98 wrote:

Edit: The download link for this is a few posts down: http://www.nintendolife.com/forums/dsiware/petit_computer?sta...

How interested would you guys be in a program that automatically stitches qr codes together? I noticed that everyone seems to post a custom stitched png image (or separate images, like me), so I figured there wasn't really a good program to do so. I just got one up and running, but it's only for Windows. Does anybody actually want a program like this, and if so, what sort of features would you like? Right now, it just produces images that look like this:

Untitled

You can also specify the width, so that same set of qr's can look like this:

Untitled

Incredible! Intriguing!

Okay, now how would you make sprites appear "randomly? Thats the key word I dont know how to do

MrSirr

Top

Please login or sign up to reply to this topic