Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Help!? Classes, Sprites and files

  1. #11

    Help!? Classes, Sprites and files

    i've done it but the lamest way a text file but now i have a new problem how can i make one tile appear over another cous when i do it the tile i want to be on top goes on back

  2. #12

    Help!? Classes, Sprites and files

    Just draw the tile you want to be on top after you draw the tile you want to be underneath.
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

  3. #13

    Help!? Classes, Sprites and files

    hm.. well i draw them via the dxspriteengine.draw so how can i determine which is first isn't there some other way layering perhaps

  4. #14

    Help!? Classes, Sprites and files

    hm... i've solved the problem but i dont think its the best way
    i am using <varname>[counter].dodraw

  5. #15
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Help!? Classes, Sprites and files

    Have you tried using the Z-order of the Sprites.

    (PS I think its the right way but I really dislike using the DXSpriteEngine)
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  6. #16

    Help!? Classes, Sprites and files

    yeah thanks cairnswm the z-order did it
    btw why dont you like using the dxspriteengine ?? just your decision or there is some reason ?

  7. #17
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Help!? Classes, Sprites and files

    I have found the object model used for the dxSpriteEngine very unfriendly and it difficlt to add custom actions to the sprites. I made a game (Desperate defense - look under announcements) with the DXSprite Engine but had so much trouble that I just threw the game away because I couldn't do what I wanted - and it is really a simple game.

    Ok - I just went and relooked at my game - The DXSpriteEngine model has no way of allowing custom colision shapes. Based on the feel of the game I needed very small collision blocks within the enemies (Otheriwse the game felt wierd) Because of the logic used to define shapes and their collision rects I had to go and change basic code within the DXSprite.

    (Actually my insistence on using DelphiX is a bit pathetic as I only really use the DXImageList and DXDraw objects....)
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  8. #18

    Help!? Classes, Sprites and files

    cool game

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •