FOR I=0 TO NSHRTCT-1
IF TS$(0)==SHRTCT$(I, 0) THEN EXEC SHRTCT$(I, 1)
NEXT
The first dimension of SHRTCT$ can be of different sizes (based on a user-provided MEM file). That size is stored in NSHRTCT. {Edit: Just to clarify, the size, not the final index, is stored here.}
The second dimension of SHRTCT$ is of size 2.
@Malltog The EXEC command gives the illegal function call error when you pass it a string with a length not between 1 and 8. So if you pass an empty string or a string of length 9 or more, it will error.
Edit: This is assuming you aren't prefixing with "PRG:", of course. But the same idea applies to the filename.
@calc84maniac
Oh. Now I get it.
I store the values in that array in a file for persistance.
And I PAD THEM WITH SPACES.
Duh. (For others' reference, EXEC also gives illegal function call if the string contains non-alphanumeric characters. Like spaces.)
@ShadowGames to change the color, edit the data for it. I don't remember what the sub-routine, IamAPerson could help you with that. The graphics cover any sprites you load so you need to do quite a bit of editing before showing sprites.
And don't forget schoolwork. It consumes time, that's why I can't work on Apocalypse Rising immediately when I get on sometimes.
I need shooting, and Trinitro21 on GameFAQs helped me, but my inexperience doesn't allow me to translate this nor understand...
GameFAQs Flashback:
Apocalypse Rising is actually nearly done, yesterday I implemented basic walking. I still need to animate it, but that's fine. I need SHOOTING, and I remembered how to do that, but the information doesn't come to mind at all...
I needed some assistance, so I decided to make a thread for help instead of making a thread for every problem I run into.
So shooting. How do I do that again...?
You'd have a 2D array to store the bullets' data(if it exists, x, y, direction). Then you'd have a subroutine to go through all the bullets, check if they exist, change their x values, and offset them. To shoot, go through the array, find a blank spot, assign the correct values, and set the sprite.
Hello!
I've been lurking this(Actually, the QR thread) thread, for some time now. I finally decided to make an account
I'm not to good a programing. but I do like to draw Graphics!
I'm currently working on some minecraft style graphics.
I've currently drawn. Grass, dirt, Tree drunk, leaves, wood, TNT, water, gavel, sand, stone, torch and door.
They're actually meant for a 2d minecraft.
Edit:Pictures coming soon.
Wow, I really want the pictures. I was bored so I made a 2d block-building game, and I really just can't do the water texture.
@ShadowGame find the @TEXDATA data sequence. Those numbers are the colours used for the walls. Note: those colours are not text colours. They are 256-colour palette colours. Change that. If you want to change the size of the textures (4x4, 16x16) then tell me.
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.
@IAmAPerson
Thanks!
But One question:
I would make an ego Shooter and i need enemies.
How can i load them into the Labyrinth made with the raycast Engine?
@IAmAPerson
Thanks!
But One question:
I would make an ego Shooter and i need enemies.
How can i load them into the Labyrinth made with the raycast Engine?
Your welcome. Anyway, I'm not completely sure how to do what you're asking. I'd say something like this: on the map, put a 2 where you want enemies. Then, when it sees a 2, have it place an enemy sprite. Scale it using the DIST variable. That's what I used for render distance (if DIST was greater than 16, then it stops drawing). Make sure that when you kill the enemy, edit the array MAP() where the enemy was from a 2 to a 0, to remove the collision. I think that's how you'd do it. Don't quote me on this.
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.
Thanks!
And how can i make a shot? The sprite for it should spawrns in Front of my player and kills the Enemy.
I Hope my english is right (but i dont think so).
Thanks
If i Write a 2 in the Map it gives the error:
Subscript out of range (98, gfill)
Why?
I would need to look at the code to be certain, but from memory, it seems that an array isn't DIMmed big enough. Like I said, I really need to look at the code to make sure. If you load a current Minecraft DS world on some of the older versions like Alpha, the game will crash with that error.
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.
@0Games I see you're learning C++ now instead of C.
To make up for off-topicness, here's a list of everything MCDSEdit will offer
Map editing. Use any block and place anywhere.
Attribute editing. Change location of player, inventory, hotbar, nickname, etc.
Version conversion. Load a map and it will detect the version and convert to latest version.
Texture editing. Change textures. I will add after texture pack support is working again.
Another thing that Minecraft DS Beta 1.7 will include: much lag improvement.
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.
@0Games I see you're learning C++ now instead of C.
To make up for off-topicness, here's a list of everything MCDSEdit will offer
Map editing. Use any block and place anywhere.
Attribute editing. Change location of player, inventory, hotbar, nickname, etc.
Version conversion. Load a map and it will detect the version and convert to latest version.
Texture editing. Change textures. I will add after texture pack support is working again.
Another thing that Minecraft DS Beta 1.7 will include: much lag improvement.
Yes, if you have an amazing build in a 16x16 world (like me) but is running out of space and want to make it a 32x32 world, you can now do that! I'll make another button called "Change world size"
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.
Forums
Topic: Petit Computer
Posts 7,041 to 7,060 of 9,620
Please login or sign up to reply to this topic