Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,227 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Puzzle [Re: Mafia_IR] #377734
07/15/11 20:58
07/15/11 20:58
Joined: Jul 2011
Posts: 15
C
Coover Offline
Newbie
Coover  Offline
Newbie
C

Joined: Jul 2011
Posts: 15
k sry then make an array that gets the size of the map.size_x/objekt.size_x
when you know that you can change your code and execute the event further times in a while loop

this
Code:
objects[i].bmap = 0 ;
		objects[i+1].bmap = 0 ;
		objects[i+2].bmap = 0 ;
		
		objects[i].bmap = objects[i-5].bmap ;
		objects[i+1].bmap = objects[i-4].bmap ;
		objects[i+2].bmap = objects[i-3].bmap ;
		
		objects[i].bmap = objects[i-5].bmap ;
		objects[i+1].bmap = objects[i-4].bmap ;
		objects[i+2].bmap = objects[i-3].bmap ;



to this
Code:
for(var j = 0; j <3; j++)
	{	
		objects[i+j].bmap = 0 ;
		
		
		objects[i+j].bmap = objects[i-(5-j)].bmap ;
	}



i think its shorter

Re: Puzzle [Re: Coover] #377762
07/16/11 07:49
07/16/11 07:49
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
so this game has no problem about its graphic except it should be smaller ....

Thanks every one .

Page 2 of 2 1 2

Gamestudio download | chip programmers | 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