Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Quad), 26,406 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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