Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,718 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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