Main Menu

Sprites ?

Started by BooBoo, 18 Apr, 2011, 01:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BooBoo

I have to admit I find some of the info on Sprites rather baffling

Anyway ive placed some objects on the Screen using Sprite instead of BOB to try and Speed things up but when scrolling the Screen with Offset the Sprites are Moving with the Screen - Its a nice affect but I dont want them to move -Whats happening?

skateblind

Not too sure, but I guess there must be some command you need to stop that from happening. Have you searched through the manual? RTFM!

There are probably a few demos on the Amos Pro disks that show you how screen offset works.
What are you looking at?

Hungry Horace

sprites are set with hardware coords are they not? so if your hardware coords change with the screen move, they will also move.

why not set the sprites at a location plus/minus the value you are moving the screen? (thus cancelling the effect)
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo

#3
Horace good idea! but I dont think ill have to move much
Yeah I dont think this can he helped. Ill probably change the main charter to a Sprite other stuff BOBs then the Main sprite will move with the screen and only have to move it separately when not centered and the screen isnt moving
this is probably used in a few games it doesnt help not knowing the hardware.

This will probaly be faster but id have to re calculate a load of stuff..........................

Attached Below Demo so Far - including the editor to place food/Bobs on screen your notice if you place a lot of BOBs on screen it will start to strugle - mainly in the BOB demo using a BOB for the main character

Lonewolf10


How is this progessing?

It runs pretty smoothly, and certainly has potential. I would love to see some new AMOS games make it to the Amiga :)


Regards,
Lonewolf10

BooBoo

Thanks for checking out the demo
My intrest has dwindled latley - but plan to start again soon
The Demo uses a large screen and I was never able to fix the problem with Large screen BOBs - any ideas?
Ive now moved to endless hardware scrolling horizontal 2 way is working - I plan to look at 4 way maybe 8 way

Problems - that exist are How many tiles can be pasted without problems durring scrolling
Target Amiga
general Calculations and my tiny brain


Lonewolf10

#7
The AMOS default maximum bobs is 64 I believe, but you can change the settings to increase that.

Edit:
The video of Mario looks great.You have managed to get the scrolling working beautifully :)


Regards,
Lonewolf10


Hungry Horace

Hey BooBoo.

I am looking into my own platformer again (the thing works, but the speed sucks) , and was wondering if you had any code you could upload for me to look at? (the disk image attached above no longer works)

I am interested in particular in your map collision detection, as I think this is what is slowing mine down. (i think I will have to gut it and start-over if i'm honest)

Cheers!
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo

Hi
If we think of a Map editir and the Mouse Cursor is our Main Sprite/Hero weve already figured out X,Y -We know exactly where we are on the Map

Ive sent you a PM which may or may not be helpful  ;D

BooBoo

Info any use? no reply?

Hungry Horace

Quote from: BooBoo on 03 Jan, 2012, 11:33 AM
Info any use? no reply?

A bit of use, thank you - yes! I see you are using Zones for your checks.

Sorry I havent had time to reply, xmas is usually a lot of free time for me, but it's been very different this year.
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo

 Cool  ;)  no worrys hope you had a good Xmas