Are you doing it manually, and pixel accurate? I find it helps tremendously to just use 24x24 grid. So you'll have 8x11 keypad. Then it's a simple matter of
KEY=FLOOR(TCHY/24)*11+FLOOR(TCHX/24)
Obviously, you don't use every key. I don't use the rightmost keys (because they're cut in half).
Edit:
You can combine this technique with either array of strings denoting label, then GOTO labelstring
or what I'd do is just use a string filled with characters denoting the keys, and use MID$ to extract the key. Modifying the keys is just as easy as changing the string.
@ShadowGame
Sorry to be pedantic, but I think you mean "spawn" instead of that, uh, bad word. Better check your dictionary to make sure.
@Xtremetdifan Oh, I'm sorry! I never said, did I? Well, I did look at it, and as much as I like the theme, I don't think I'll be able to reproduce it well. I'd have to create some custom sound effects to get that sort of "Sega" sound, and I just don't think I could. I'm sorry.
@Xtremetdifan Oh, I'm sorry! I never said, did I? Well, I did look at it, and as much as I like the theme, I don't think I'll be able to reproduce it well. I'd have to create some custom sound effects to get that sort of "Sega" sound, and I just don't think I could. I'm sorry.
Oh it's cool, I'll just use some of the pre-set music...sigh... Thanks for checking it out though!
Botw > OoT
3DS Friend Code: 0748-4970-2550 | Nintendo Network ID: Xjarnold
What is you guys' LEAST favourite part of PTC programming? Mine is doing touch screen buttons. Making the touch controls for Minecraft DS is a NIGHTMARE!
@ramstrong I do this: I touch the top-left and bottom-right of each button, record the TCHX and TCHY values of both presses, then I do something like this:
IF TCHX>10 AND TCHY> 10 AND TCHX<20 AND TCHY<20 THEN @EATPOTATO
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.
@ramstrong I do this: I touch the top-left and bottom-right of each button, record the TCHX and TCHY values of both presses, then I do something like this:
IF TCHX>10 AND TCHY> 10 AND TCHX<20 AND TCHY<20 THEN @EATPOTATO
For each button? No wonder it takes a long time. Hmmm. Maybe I should expedite that Virtual Keyboard blogpost I'd been meaning to write. Trust me. If you can go by grid, do it by grid. It won't take any time at all.
i just released version 0.05 of my attack on titan game c: http://petitcomputer.wikia.com/wiki/Attack_on_Titan_Tribute_Game
i added a limited amount of swords, swords can break if you hit titans too much, better 3dmg physics, left attacking, scrolling background, respawning after you die, easier to hit the titans, and an option to change the music volume
it's still very buggy though
get in loser we're going titan hunting
3DS Friend Code: 2879-0639-8952 | Nintendo Network ID: merp_aottg
Thanks for your helping and sorry for the mistake with
spawn. I have another question:
I would make Level 2 in my game.
I would make 2 enemies in this Level.
The Problem is: how can i Check the collision
With sprite 4 (sprite 4 is a shoot that kills
the enemies.) and the two Enemy sprites (4 and 7)?
And how can i make the sprites to move?
@ramstrong I do this: I touch the top-left and bottom-right of each button, record the TCHX and TCHY values of both presses, then I do something like this:
IF TCHX>10 AND TCHY> 10 AND TCHX<20 AND TCHY<20 THEN @EATPOTATO
That's what I usually do too. And WOW these forums are slow.
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. Wait was that just a joke?
3DS Friend Code: 1478-3545-5136 | Nintendo Network ID: GreatGamer123
@programmerpro they are usually NOT this slow. I don't know why we are all being so quiet. Maybe...someone is planning a big surprise and I don't know about it?
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.
Maybe people are just busy, whether that is with their SmileBASIC projects...
Yea I'm really working hard and trying to finish this next update for #MCDS (Yea, I just did that). @Bluerobin2 do you have an approximate date for the release of SmallMath? Not trying to rush you! Also, what are the commands and what is the syntax for each command? As soon as I get it, I want to make a 4-function calculator (if the language has the ability to use IFs in strings). Also, I'd love to see some graphic commands. Maybe something like:
DRAW.LINE X start,Y start,X end,Y end,colour
or
DRAW.DOT X,Y,colour
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.
What is you guys' LEAST favourite part of PTC programming? (snip)
Everything. I'm in it for the aftermath results.
A programmer would never say that. Maybe you should change your tag line signature to something more appropriate.
-_-
I'm not really sure if you can see through untrue statements or not. Everyone knows me here, I would never MEAN that.
I would say sprites, those seem simple but it took me a really long time to get the Gladiators custom sprites working for real.
@programmerpro they are usually NOT this slow. I don't know why we are all being so quiet. Maybe...someone is planning a big surprise and I don't know about it?
heh heh heh...
Botw > OoT
3DS Friend Code: 0748-4970-2550 | Nintendo Network ID: Xjarnold
Forums
Topic: Petit Computer
Posts 6,601 to 6,620 of 9,620
Please login or sign up to reply to this topic