well..
Using CHRED doesn't seem to be helping much..
I'll try something else..
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
For those of you who aren't paying attention you SHOULD!
In order to fix the issue with a 64 by 64 sprite being scrambled you need to check the MKII checkbox before loading your sprite and check SPRITE and check 8X8 all before loading it.
For some reason the MKII checkbox needs to be checked for sprites that are larger than 32x32
But for 32X32 sprites, I need to use the sprite re arranger thingy... odd..
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
So here's a lesson in reading the fine print: I was using GPUTCHR to create the credits screen, but somehow using GPUTCHR altered the colors of the minimap when it was drawn at a later time. It turns out that I didn't read the documented side effect of GPUTCHR: in order to accurately draw the CHR in the palette you specify, it has to copy that palette from the page you took the CHR from. Remember, the GRP color palette is different from the SPU color palette, so drawing an SPU CHR on the GRP using the default GRP palettes wouldn't look right. I really should have read this before spending all that time trying to figure out why my colors were changing.
For those of you who aren't paying attention you SHOULD!
In order to fix the issue with a 64 by 64 sprite being scrambled you need to check the MKII checkbox before loading your sprite and check SPRITE and check 8X8 all before loading it.
For some reason the MKII checkbox needs to be checked for sprites that are larger than 32x32
But for 32X32 sprites, I need to use the sprite re arranger thingy... odd..
MkII means version 2. Perhaps they changed the sprite programming from version 1 to version 2?
It's good to know, but since I'm not using PTC Utilities anymore, I guess it doesn't matter to me.
So here's a lesson in reading the fine print: I was using GPUTCHR to create the credits screen, but somehow using GPUTCHR altered the colors of the minimap when it was drawn at a later time. It turns out that I didn't read the documented side effect of GPUTCHR: in order to accurately draw the CHR in the palette you specify, it has to copy that palette from the page you took the CHR from. Remember, the GRP color palette is different from the SPU color palette, so drawing an SPU CHR on the GRP using the default GRP palettes wouldn't look right. I really should have read this before spending all that time trying to figure out why my colors were changing.
We have 16 different palettes, right? Does that mean you're using the same palette number for both SPU and GRP? Because, as I understand it, it wouldn't matter if you're using a different palette number for SPU and GRP. I haven't checked the color carefully, so I wouldn't know.
@ramstrong There are three available color palette "sets": GRP, SPU, and BGU. SPU and BGU initially start with the same colors, but you can change them separately (as I do in Village to get the grass to look different than the trees). However, GRP starts with an entirely different color palette set for whatever reason (I guess it's because you usually use it for drawing). Thus, in order to draw a character from an SPU sheet onto the GRP sheet but still use SPU colors, it has to overwrite one of the palettes on the GRP.
Hey everyone I just want some advice.
I'm trying to set up some variable space for my smash bros update. I need to support NPCS and various modes.
Instead of using typed arrays I decided to customize special subroutines and set up a very special type of system for handling things.
Including NPC action priorities and AI checking. Things like that. Here's some values I set up and some code to handle all that stuff it's meant to be more organized than my smash bros game code is right now. Please keep in mind it's only template code and could change as I go along but I could use some ideas if you have any or spot any mistakes or w/e or even if you have suggestions on how to make my code cleaner and improve it? Please ignore the whitespace that'll be gone later.
@setup
Player_x=0 'the player's X coordinate
player_y=0 'the player's Y coordinate
Camera_X=0 'offsets in 8 pixels (one tile) per scroll
Camera_y=0 'offsets in 8 pixels (one tile) per scroll
player_spritenum=null 'is that a constant in this?
dim character_names$(4)
character_names$(1)="Mario"
character_names$(2)="Link"
dim linkspriteS$(2)
linksprites$(1)="Lruns1_p" 'the first four frames of link's run cycle
linksprites$(2)="Lruns2_p" 'the second four frames of link's run cycle
dim mariosprites$(2)
mariosprites$(1)="MRUNS_"
mariosprites$(2)="MPUNCHU"
dim charpalletes$(4) 'one for link, one for mario, and two more for the other two characters
charpalletes$(1)="thispal" 'mario's punching pallete
charpalletes$(2)="Linkbgco" 'link's pallete for running
dim charactersizes(4, 2) ' Four characters, one size for their X and one size for their Y
charactersizes(1, 1)=16 'Mario's X_size is 16
charactersizes(1, 2)=32 'Mario's Y_size is 32
charactersizes(2, 1)=64 'Link's X_size is 64
charactersizes(2, 2)=64 'Link's y_size is 64
dim npc_variables(3, 25) ''25 npc variables
'1=npc_x ; 2=npc_y ; 3=npc_playernumber ;4=npc_control number ; 5=npc map_x ; 6=npc map_y
'7=npc_damage_percent ; 8=npc_status ; 9=npc_ai_mode ; 10=npc_held_item ; 11=npc_current_frame
'12=npc_chr_num ; 13=npc_pallete ; 14=npc_knockback ; 15=npc_level ; 16=npc_damage_ratio
'17=npc_knockback_resist ; 18=npc_pose ; 19=npc_fallspeed ; 20=npc_recover_time
'21=npc_pokeball set only if has pokeball
'22=npc_on_screen
'23=npc_scale ' for scaling and rendering the npc to offscreen slowly or foreground
'24=npc_sprite_priority 'the system will have a sprite priority i'm assuming ptc draws one sprite over another
'25=reserved //this is reserved. don't ask why. It's just a good idea.
'just a note . some custom collision detection will
'be needed
'i'm not using offsets
return
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
wow. after establishing a base for alot of that code.. I'm finding it way easier now to organize how I'm going to do things. :3
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
I hope this isn't considered spam, but I've created a stable base for menus in petit smash bros now all my own. They will be updated later to use tiles and frames.
I'll re use the menus later on for lttp maybe.
Things are looking pretty good! But no progress on the physics yet boo!
I won't have time tonight to do any of that . so later tommorow. This is going slower than I expected but I'm making alot of progress. Menus are a pain at first. LOL. I HOPE EVERYONE is excited for the release of version 1.2 of petit smash bros. I know I am. I've been working really hard at this.
Anyways. I think everybody's just waiting to see V1.2 themselves XD I'd say the coding is about 20% done for V1.2 and that's alot considering what's in store for version 1.3. After this change in the codebase continuing development will be way easier. I'm not re programming it from scratch so much since most of the issues I had were to deal with sprites.
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
is anyone awake at this hour? Just curius. I completed the rudimentary menu for Petit Smash bros! <3
I might release an early demo of petit smash bros some time tommorow evening seeing how I have some of link's sprites done but I've removed the combat system for now since it needs to be redone with a collision system intact. The demo will allow the same mechanics as in previous but that red placeholder enemy will be removed, and replaced with the option to go against real (dumb) cpus.
The Ai won't be complete yet. and items won't be added until the FULL version 1.2 is out.
So. Not to confuse anyone . I'm not releasing the FULL version 1.2 yet but if I can manage to get all of this code done without many bugs then version 1.2 LITE will be released.
Then, in a few more days to a week after that version 1.2 FULL will be released.
I hope that's enough of an update for now. If anyone has anymore questions they can check the blog. I know all of you are probably asleep (like normal people) :3 haha!
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
@IamAperson620 could you go into further explanation about graphics? I could give you some pointers about sprites too.
Of course! Here are some more commands:
GCLS clears graphics
GCOLOR sets drawing color
GPAGE (0 or 1) selects top or bottom screen to draw on
GPSET X,Y[,color] makes a dot
GLINE X start,Y start,X end,Y end[,color] makes a line
GCIRCLE X,Y,Radius[,color] makes a circle
GBOX X start,Y start,X end,Y end[,color] makes a box
VARIABLE=GSPOIT(X,Y) gets color ID from a color on a spot on the screen
You can use GPSET and GSPOIT to use GRP save files.
Thanks! I'll give some tutorials about sprites once I write everything down on something.
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
I made a new blog that will have a petit computer section for programming.
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
Err mah gerdddd. People need to learn wha z version numbers meannnn. Version<1=incomplete (an example of this is Petit Smash Bros.), version 1=just finished, version 1.0.1-1.0.9=bug fixes, version 1.1-1.9=dlc or extra content, version 2.0=expansion/entire new game/second quest.
Pleaseeeeee do it right. I feel soooo OCD righ now, but it's bugging me soooo much. lol
I would like to make a program with someone. I don't know how to create qr codes but I can post something if your having trouble.
How to make QR codes
How do you make PTC files?
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
I've had Petit Computer for a couple of days now and have already got a simplegame up and running - Petit Push. It's a clone of the Sokoban puzzle games. It's simple but allowed me to get the basics of PetitComp quite quickly. I'm sure there are some things I've done that could have been simplified or made more efficient, but for a first attempt I'm happy with it and I'll continue to expand my knowledge of it.
Petit Push is still a WIP but so far it has an animated intro and title, a fully playable game with three levels, end screen and instructions etc. I've got another 30+ levels to add (which are done, but not I've just not added the data yet) and sfx and music. I plan to implement a save system too to record progress and records.
Here are a couple of screenies of the game in action
Is it possible to put things like GCIRCLE or GLINE or GFILL on the touch screen? I would love to be able to.
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
Forums
Topic: Petit Computer
Posts 4,241 to 4,260 of 9,620
Please login or sign up to reply to this topic