Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,618 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
is this possible? (bitmap) #312702
02/26/10 00:52
02/26/10 00:52
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
Hi, I have a problem trying to do some kind of animation for a panel, I have 1 bitmap so I want it to be repeated over and over, but I don't know how to do this quiet well, here's an example:

I have this image:




This is what I'm trying to achieve:



and this is what I've done so far




Would this be possible? or do I have to do something else? this is the code I'm using right now, so you might take a look and see if I'm doing something wrong:

bar_pan.pos_x -= 10*time_step;

if(bar_pan.pos_x < 150)
{
bar_pan.pos_x = 450;
}

I would really appreciate some help, this might be some noobish question but I need to do this as fast as I can, since it is for my thesis, thanks for reading this, I hope you can help.

Last edited by Theil; 02/26/10 00:53.
Re: is this possible? (bitmap) [Re: Theil] #312707
02/26/10 01:03
02/26/10 01:03
Joined: Oct 2009
Posts: 110
Porto-Portugal
Elektron Offline
Member
Elektron  Offline
Member

Joined: Oct 2009
Posts: 110
Porto-Portugal
Use a bitmap with double width of the panel and it must have the left side and right side of same height.

I hope that helps


Carlos Ribeiro aka Elektron
Check my blog: http://indiegamedeveloper71.wordpress.com/
Re: is this possible? (bitmap) [Re: Elektron] #312710
02/26/10 01:14
02/26/10 01:14
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yes, double width and a panel with a window element, see manual.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: is this possible? (bitmap) [Re: Superku] #312715
02/26/10 01:47
02/26/10 01:47
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
thanks laugh it worked out pretty well, I was missing the window element now it looks pretty good wink


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1