@Discostew Thanks alot! It really helps! Tho, one more thing. How do i get the sprite to jump while moving? I added some left to right and when i press A and L/R it stops.
3DS FC : 4613 - 7463 - 3640
我的名字是TobuKatsu。Меня зовут ТобуКатсу. 私の名前はトブカツです。나는 이름을 케이린 입니다.
很高兴认识你。Очень приятно. よろしくお願いします。 만나서 반가워요.
@Discostew Thanks alot! It really helps! Tho, one more thing. How do i get the sprite to jump while moving? I added some left to right and when i press A and L/R it stops.
That involves saving the button state and using bit masks. The example I made was for exact button presses. The actual result of BUTTON combines multiple button presses. Here are the values of each
Up — 1 = BIT0
Down — 2 = BIT1
Left — 4 = BIT2
Right — 8 = BIT3
A — 16 (you see that in the example)
B — 32
X — 64
Y — 128
L — 256
R — 512
Start — 1024
Select — 2048
Altogether is a total of 12 bits to form the result, from BIT0 to BIT11 (I stopped at BIT3, but you get the idea). If you are looking to read the Right on the D-Pad, you would do this
IF BUTTON() AND 8 THEN .....
If you are looking for input from both pressing up and to the right (which is a combination of 1 and 8)
IF BUTTON() AND 9 THEN ....
While that works, there is a problem. Because it is a combination of 1 and 8, the value is actually in the form of 1 OR 8, so when this line comes up to be executed, it'll pass if you press to the right OR up. So, we got to limit it.
IF (BUTTON() AND 9)==9 THEN ...
This will make sure that it MUST be up and to the right in order to proceed, rather than up OR right. Now, this works and all, but the problem is that what you read now may be different from what you read from the function again a little later. This is why it is good to save the button state each loop.
BT=BUTTON(0)
That way, you can check the state, and it won't change until your code loops around to read it again. This is really useful for Instant Press and Instant Release. I usually save them like such....
BT=BUTTON(0): 'Simply pressing the button
BTIP=BUTTON(2): 'Only shows results the moment you press a button. Instant Press
BTIR=BUTTON(3): 'Only shows result the moment you release a button. Instant Release
So, for what you want to do, you'd read from BT for D-Pad presses, and read from BTIP for pressing A for jumping (because if you read from BT for jumping with the example code I supplied earlier, he'd keep jumping the moment he'd reach the landing spot if you kept the button down).
IF BT AND 4 THEN .....(do what's needed for moving right
IF BTIP AND 16 THEN ..... (do what's needed for jumping)
QUESTION: Does anyone know how to access System Icons using CHRSET? Ex: Sprites are SPU0 - SPU7, BG tiles are BGU0 to BGU3, but what about System Icons?
You mean the ones used as buttons on the touch screen? I believe a few people figured out the section those reside on, which is SPDx, with x being between 0 and 3, inclusive. I haven't tried it out myself though. It may require that you set SPPAGE to 1.
Discostew
3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew
I am back from the dimension of life and other programming languages, now I'll have more confidence in PTC. I know some people have been waiting for the next AR update, and due to a comment on the wiki, Apocalypse Rising's title will be changed to DSZ in the next update. Just an announcement I wanted to make before I went back to working on it.
I will also not be doing the development phases and such. The next time I update this game is when it is in a playable phase, and that will be a while. I will not post here unless I have completely relevant questions or when the game is in said playable phase.
I will now proceed to try to get it there. Good day, everyone.
An odd little thing I noticed when doing some debugging of my decompression scheme is that if you BREAK execution of the code (via the Select button at least), it resets the read position back to the beginning for DATA statements. During the intro sequence for my game where it would describe Dr. Wily and such, I did the BREAK sequence and then CONT to resume, only to have it start displaying the details of the game like who made it and that I was the programmer for this project. Same thing when I viewed the credits. Instead of displaying the name and numbers of the robot masters, it began listing the intro sequence lines. It error'd out shortly after because the type of data it needed wasn't numeric (as all the intro data are strings).
Oh, and something a little funny. When I first began experimenting with LZ77 compression for graphics, I stored 2 pixels per byte in sequence of reading in the first pixel first and then the second pixel next, with the 2nd pixel being on the upper-bound of the byte. Well, with PTC's method for storing graphics, its character strings are in sequence from first to last, but when converting data from numeric to string with HEX$, it places the upper-bound value first, so for every byte, the two pixels inside got swapped. This was the result (which I found neat but it's definitely not sticking around).
You can tell by the middle image that I've been working on the main game. I wasn't sure what to put on the bottom screen for the selection screen, but when looking around for the damage charts for each robot master, I found a website that listed CD Data from Megaman & Bass for each of them. So, I chose that.
Petit Computer emulator feasible on android / ios / html5 / flash / windows ?
I'm learning haxepunk so far seems pretty neat.
I don't know what the limitations are but I might be able to create a custom library for it for running petit computer games.
(maybe)
And if I can it might mean I could release a petit computer emulator for all these platforms. (not sure if it'd work well or even work out though)
Just so people don't start hyping. This is not even developed yet and i'm only considering it as an idea. I haven't done anything yet to make it work.
Got a project? PM ME on here!
Youtube: lostkitty64x
Want help with coding? PM ME! PM ME PM ME!! XD
FC: WIll post later.
Systems I own: ds lite, 3DS, PC/gaming, steam platform. I play alot of games. Just ask ! Minecraft anyone? :D
Hi, I'm definitly NOT new here but I rarely post now, and probably because I forgot everything about SMILE basic. Can someone please tutor me or give me a full guide to SMILEBasic in some way? I would also like it to be with someone I knew when I posted often. So if you posted when I posted often and can help me get back on track with SMILEBasic, please do.
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
Guys I need help with very simple Background collision, and a bug where if I punch I change into the wrong sprite even after removing the b button code. @Discotew all this explaining makes meh head hurt.
Need your help DiscoStew! I mite be over looking the problem or maybe not. my 3ds id is 1392-6336-6290 I'm on this more then ventilo lately, I don't want my Master game online yet till it almost done, If it what I think on limits to ptc then it probley just put a hamper to my game i hope it just human error on my part. SGM DarkCon
well can't use swapnote to message you so guess ill have to give in and use this forum to try to fix the glitch if it is my doing. I'll have to dust off my computer haven't been on in long time can't wait to update it something about win8 just piss me off maybe oh that right can't play novalogic game with out it crashing or making game maps for dfx2 or can't code on it with vbnet, crash here crash there crash, crash, everywhere crash crash, can't wait to install win7 on it! yep best hard earn money wasted.
Is there a better way to compact screen images into a smaller file size. The grp files create too many qr codes. This would be for animation of cut scenes. I have been busy with life and playing Lux Pain.
Forums
Topic: Petit Computer
Posts 9,361 to 9,380 of 9,620
Please login or sign up to reply to this topic