Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: BooBoo on April 18, 2011, 12:17:23 PM

Title: Sprites ?
Post by: BooBoo on April 18, 2011, 12:17:23 PM
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?
Title: Re: Sprites ?
Post by: skateblind on April 18, 2011, 05:23:55 PM
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.
Title: Re: Sprites ?
Post by: Hungry Horace on April 18, 2011, 05:36:42 PM
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)
Title: Re: Sprites ?
Post by: BooBoo on April 18, 2011, 06:45:51 PM
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
Title: Re: Sprites ?
Post by: Lonewolf10 on August 05, 2011, 10:22:51 PM

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
Title: Re: Sprites ?
Post by: BooBoo on August 07, 2011, 06:04:25 AM
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
Title: Re: Sprites ?
Post by: BooBoo on October 21, 2011, 03:38:28 PM
Small update - Sorry Horace used Mario

http://www.youtube.com/watch?v=YYjMqk29JZQ

How the Hell! does this get so many bobs on screen?

http://www.youtube.com/watch?v=P75tS_KOxt4&feature=results_video&playnext=1&list=PL75E0455783041CC8
http://www.youtube.com/watch?v=Kly3xWn-oi0&feature=watch_response

Title: Re: Sprites ?
Post by: Lonewolf10 on November 26, 2011, 08:20:22 PM
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

Title: Re: Sprites ?
Post by: Hungry Horace on December 13, 2011, 11:32:55 AM
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!
Title: Re: Sprites ?
Post by: BooBoo on December 13, 2011, 10:14:56 PM
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
Title: Re: Sprites ?
Post by: BooBoo on January 03, 2012, 10:33:34 AM
Info any use? no reply?
Title: Re: Sprites ?
Post by: Hungry Horace on January 04, 2012, 06:59:14 PM
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.
Title: Re: Sprites ?
Post by: BooBoo on January 04, 2012, 09:02:12 PM
 Cool  ;)  no worrys hope you had a good Xmas