Petit Computer Help

Discussion in '3DS - Games & Content' started by thealeks, Feb 18, 2013.

Feb 18, 2013

Petit Computer Help by thealeks at 8:05 PM (442 Views / 0 Likes) 0 replies

  1. thealeks
    OP

    Newcomer thealeks Advanced Member

    Joined:
    Jan 27, 2012
    Messages:
    53
    Country:
    United States
    I wasn't sure where to post this because there doesn't seem to be a dsi section of this site(I'm using it on a 3ds so I posted it here). Mods feel free to move it if its in the wrong place.

    I've been making a GTA style game and I'm having trouble with the player character. I had it so the standing sprite would rotate when i pressed left or right, and i tried to add the sprite animations for walking and punching but now my character doesn't show up, unless I press the A button(attack) in which case it shows a frame from one of the built in sprite sheets(the skeleton), and when I let go of A he dissappears again. It was showing my sprite before, any ideas what happened?

    Code:
    ACLS
    VISIBLE 0,1,1,1,1,1
    SPPAGE 0
    LOAD "SPU0:GTA"
    SPSET 0,0,5,0,0,1,32,32
    SPHOME 0,16,22
    POSX=100
    POSY=100
    ANG=0
    PA=1
    PF=1
    PS=0
     
    @UPDATE
    IF ANG==360 OR ANG==0 THEN ANG=0
    IF (BUTTON() AND 4) THEN ANG=ANG-1:PS=0:PF=1
    IF (BUTTON() AND 8) THEN ANG=ANG+1:PS=0:PF=1
    IF (BUTTON() AND 32) THEN PS=16:PF=6
    IF (BUTTON() AND 16) THEN PS=128:PF=5
    IF (BUTTON() AND 0) THEN PF=1:PS=0
    VSYNC 1
    FOR I=1 TO 100
    NEXT I
    LOCATE 20,20:PRINT POSX,POSY,ANG
    GOTO @RENDER
     
    @RENDER
    SPSET 0,PS,5,0,0,1
    SPOFS 0,POSX,POSY,1
    SPANGLE 0,ANG,0
    SPANIM 0,PF,0,1
    PF=1:PS=0
    GOTO @UPDATE
    
    
    Any help would be much appreciated! Thanks in advance!
     

Share This Page