create account

Army at War : Parallax Scrolling Project #2 by zomagic

View this thread on: hive.blogpeakd.comecency.com
· @zomagic · (edited)
$10.86
Army at War : Parallax Scrolling Project #2
![main.jpg](https://steemitimages.com/DQmXhtXdcBPtuHAPqaFRHd4SaUVaZz8HbqapNV52haXJ93D/main.jpg)

# Army at War : Parallax Scrolling Project
#
Today we are going to do a Parallax Scrolling project again. For those who don't know what is parallax scroll, please go to the bottom of the page ... 

![demoGif.gif](https://steemitimages.com/DQmfE5bniF92DcAG8CcVZX34stebkvmDHydK7TQ5XidPFP8/demoGif.gif)

This is the animated gif version. For full working HTML version please click [here](http://neuvisual.com/steemit/parallax2/index.html)

![write1.jpg](https://steemitimages.com/DQmeCCDxY5Lj2HUZ9FC5rkB1CaZeJGaViDCZ8Q2a7tE2jK6/write1.jpg)
[source](https://www.pexels.com/photo/shoot-army-machine-gun-armed-35825/)

This is the picture that I choose. It looks pretty good but what more important is.. it can give a good impact when we make our 3d scroll parallax effect.

## The making
##

First, I crop the main army and put it on one layer. I use a polygonal lasso tool for that. 

![process2.jpg](https://steemitimages.com/DQmXpKyr5sL1xsJgSsb7W4W1Wmb1mEoZeDMTWGi37af7sP1/process2.jpg)
![process3.jpg](https://steemitimages.com/DQmRb9ZuGPTu1UGXyrmbrw6shnzeEDnZHyHT2xveAjTDymw/process3.jpg)

Secondly, I edit the second army. I use a  clone stamp tool to draw hidden part (overlap part by the first layer) so that when we scroll the image we can still see the image below the first layer. 

![process4.jpg](https://steemitimages.com/DQmTowrPPmuetjZZRcfPNvJ7NLVS3w9VcZKfneJjyBLcnm7/process4.jpg)
![process5.jpg](https://steemitimages.com/DQmV5AU3WpotKQ2hGgGrVZeQf5yt7EriJRXfKdZUsTYXDep/process5.jpg)

Thirdly, I edit the background. For the most parts, I use clone stamp tool to reproduce the image below the second layer. I also make the image more blurry by using Gaussian Blur filter.

![process6.jpg](https://steemitimages.com/DQmfHdxKqhpFg8Hfr1EqNR95xZpnqNf6GyrW6E7RK2Ek2GQ/process6.jpg)

Then I add some front drop to make more impact on our Parallax Scrolling. This going to be so much fun. Watch out for the bullet! I think the effect of the bullet it's cool.

![process9.jpg](https://steemitimages.com/DQmVNVNRjV9DBKLGryP1hPovGDbTCNtQbsDq9pn5RkA5mb7/process9.jpg)
![process10.jpg](https://steemitimages.com/DQmQJdEj3JWi5EUVE8qx6GKu72TEANosg7bpj9ioeBC5tvb/process10.jpg)

Finally, I do a simple coding in Malaybasic. This is the code...
```
Aplikasi ("ParallaxScrolling",1640,1080)
l#=LebarSkrin()
parallax1=SediaGambar("layer1.png")
parallax1gap#=Lebar(parallax1)-l
parallax1a=SediaGambar("layer1a.png")
parallax1gapa#=Lebar(parallax1a)-l
parallax2=SediaGambar("layer2.png")
parallax2gap#=Lebar(parallax2)-l
parallax3=SediaGambar("layer3.png")
parallax3gap#=Lebar(parallax3)-l
parallax4=SediaGambar("layer4.png")
parallax4gap#=Lebar(parallax4)-l
parallax5=SediaGambar("layer5.jpg")
parallax5gap#=Lebar(parallax5)-l

posPercent#=0.0

fungsi GelungUtama() 
	CuciSkrin() 
	posPercent=(SentuhX()/l)
    gambar parallax5,-parallax5gap*posPercent,0
    gambar parallax4,-parallax4gap*posPercent,0
    gambar parallax3,-parallax3gap*posPercent,0
    gambar parallax2,-parallax2gap*posPercent,0
    gambar parallax1a,-parallax1gapa*posPercent,0
    gambar parallax1,-parallax1gap*posPercent,0
tamat 
```

.
.
.
.


Okay guys... Until next time!

See ya...

If you are still blur...😉 [CLICK THIS](http://neuvisual.com/steemit/parallax2/index.html) Watch out for the bullet!

Bonus: Process in animated gif...

![processGif.gif](https://steemitimages.com/DQmQ39aKpdxPeahaqdRQVkr1115dR9xXE2P2ZWgNXdUoRm4/processGif.gif)

### Note about Parallax Scrolling
What is it actually? 
Parallax scrolling, also known as "Asymmetrical Scrolling", is a technique in computer graphics especially games, where images in different layers, move by the camera slower than closer images, creating an illusion of depth in a 2D scene.
https://en.wikipedia.org/wiki/Parallax_scrolling

![steem-cartoon-logo.png](https://steemitimages.com/DQmQk2LL9GuYjXRs1zo6k2fNCf899rTXqr8A2ZuQCrF8DU9/steem-cartoon-logo.png)

---

###### Malaysian! Bitcoin fee is expensive. Use ETH to trade STEEM. Easy buy/sell from [here](https://eth.remitano.com/my?ref=zomag)

---
<img src="https://v-hp.com/steemit/icon/painting.png"><img src="https://v-hp.com/steemit/icon/steemit.png"><img src="https://v-hp.com/steemit/icon/3d.png"><img src="https://v-hp.com/steemit/icon/arts.png"><img src="https://v-hp.com/steemit/icon/bitcoin.png"><img src="https://v-hp.com/steemit/icon/coding.png"><img src="https://v-hp.com/steemit/icon/crypto.png"><img src="https://v-hp.com/steemit/icon/photo.png"><img src="https://v-hp.com/steemit/icon/science.png"><img src="https://v-hp.com/steemit/icon/game.png"><img src="https://v-hp.com/steemit/icon/life.png"><img src="https://v-hp.com/steemit/icon/tips.png">

<img src="https://v-hp.com/steemit/icon/upvote.jpg">
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 111 others
properties (23)
authorzomagic
permlinkarmy-at-war-parallax-scrolling-project-2
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon","teammalaysia","steemiteducation","art","photography"],"image":["https://steemitimages.com/DQmXhtXdcBPtuHAPqaFRHd4SaUVaZz8HbqapNV52haXJ93D/main.jpg","https://steemitimages.com/DQmfE5bniF92DcAG8CcVZX34stebkvmDHydK7TQ5XidPFP8/demoGif.gif","https://steemitimages.com/DQmeCCDxY5Lj2HUZ9FC5rkB1CaZeJGaViDCZ8Q2a7tE2jK6/write1.jpg","https://steemitimages.com/DQmXpKyr5sL1xsJgSsb7W4W1Wmb1mEoZeDMTWGi37af7sP1/process2.jpg","https://steemitimages.com/DQmRb9ZuGPTu1UGXyrmbrw6shnzeEDnZHyHT2xveAjTDymw/process3.jpg","https://steemitimages.com/DQmTowrPPmuetjZZRcfPNvJ7NLVS3w9VcZKfneJjyBLcnm7/process4.jpg","https://steemitimages.com/DQmV5AU3WpotKQ2hGgGrVZeQf5yt7EriJRXfKdZUsTYXDep/process5.jpg","https://steemitimages.com/DQmfHdxKqhpFg8Hfr1EqNR95xZpnqNf6GyrW6E7RK2Ek2GQ/process6.jpg","https://steemitimages.com/DQmVNVNRjV9DBKLGryP1hPovGDbTCNtQbsDq9pn5RkA5mb7/process9.jpg","https://steemitimages.com/DQmQJdEj3JWi5EUVE8qx6GKu72TEANosg7bpj9ioeBC5tvb/process10.jpg","https://steemitimages.com/DQmQ39aKpdxPeahaqdRQVkr1115dR9xXE2P2ZWgNXdUoRm4/processGif.gif","https://steemitimages.com/DQmQk2LL9GuYjXRs1zo6k2fNCf899rTXqr8A2ZuQCrF8DU9/steem-cartoon-logo.png","https://v-hp.com/steemit/icon/painting.png","https://v-hp.com/steemit/icon/steemit.png","https://v-hp.com/steemit/icon/3d.png","https://v-hp.com/steemit/icon/arts.png","https://v-hp.com/steemit/icon/bitcoin.png","https://v-hp.com/steemit/icon/coding.png","https://v-hp.com/steemit/icon/crypto.png","https://v-hp.com/steemit/icon/photo.png","https://v-hp.com/steemit/icon/science.png","https://v-hp.com/steemit/icon/game.png","https://v-hp.com/steemit/icon/life.png","https://v-hp.com/steemit/icon/tips.png","https://v-hp.com/steemit/icon/upvote.jpg"],"links":["http://neuvisual.com/steemit/parallax2/index.html","https://www.pexels.com/photo/shoot-army-machine-gun-armed-35825/","https://en.wikipedia.org/wiki/Parallax_scrolling","https://eth.remitano.com/my?ref=zomag"],"app":"steemit/0.1","format":"markdown"}
created2018-01-15 16:24:30
last_update2018-01-17 11:09:45
depth0
children7
last_payout2018-01-22 16:24:30
cashout_time1969-12-31 23:59:59
total_payout_value8.742 HBD
curator_payout_value2.119 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,796
author_reputation1,105,966,594,000
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,739,333
net_rshares1,153,540,308,969
author_curate_reward""
vote details (175)
@naquoya ·
Well this is a new topic for me. I've seen this before, in games. But never how it comes about. Thanks for taking us through a detailed explanation of the steps involved. Gives some more clarity on the process of bringing computer games to life (well, one part of it).
properties (22)
authornaquoya
permlinkre-zomagic-army-at-war-parallax-scrolling-project-2-20180117t064350673z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"app":"steemit/0.1"}
created2018-01-17 06:43:51
last_update2018-01-17 06:43:51
depth1
children0
last_payout2018-01-24 06:43:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length268
author_reputation49,473,351,596,458
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,108,611
net_rshares0
@piratemonki ·
@piratemonki upvote me back.
properties (22)
authorpiratemonki
permlinkre-zomagic-army-at-war-parallax-scrolling-project-2-20180120t015400679z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"users":["piratemonki"],"app":"steemit/0.1"}
created2018-01-20 01:54:03
last_update2018-01-20 01:54:03
depth1
children0
last_payout2018-01-27 01:54:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation67,644,548,273
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,755,086
net_rshares0
@rambai ·
i love thisss!!..thanks zomagic..feed me more haha
properties (22)
authorrambai
permlinkre-zomagic-army-at-war-parallax-scrolling-project-2-20180115t223022495z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"app":"steemit/0.1"}
created2018-01-15 22:30:24
last_update2018-01-15 22:30:24
depth1
children1
last_payout2018-01-22 22:30:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length50
author_reputation7,600,316,092,909
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,804,832
net_rshares0
@zomagic ·
Haha... thanks for d vote
properties (22)
authorzomagic
permlinkre-rambai-re-zomagic-army-at-war-parallax-scrolling-project-2-20180116t012424447z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"app":"steemit/0.1"}
created2018-01-16 01:24:27
last_update2018-01-16 01:24:27
depth2
children0
last_payout2018-01-23 01:24:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length25
author_reputation1,105,966,594,000
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,830,213
net_rshares0
@tfame3865 · (edited)
This is awesome  especialy the coding aspect was superb @zomagic
properties (22)
authortfame3865
permlinkre-zomagic-army-at-war-parallax-scrolling-project-2-20180117t061621183z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"users":["zomagic"],"app":"steemit/0.1"}
created2018-01-17 06:16:24
last_update2018-01-17 06:16:45
depth1
children0
last_payout2018-01-24 06:16:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length64
author_reputation445,459,204,503,686
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,104,650
net_rshares0
@wilmarnm ·
Fantastic effect. Thank you very much for sharing the process with us, I would love someday to try something like this. Cheers!
properties (22)
authorwilmarnm
permlinkre-zomagic-army-at-war-parallax-scrolling-project-2-20180116t015313466z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"app":"steemit/0.1"}
created2018-01-16 01:57:33
last_update2018-01-16 01:57:33
depth1
children1
last_payout2018-01-23 01:57:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length127
author_reputation400,932,978,278
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,834,995
net_rshares0
@zomagic ·
If you have time, then try it. 
You can post in your steemit and please tell me if you do.
properties (22)
authorzomagic
permlinkre-wilmarnm-re-zomagic-army-at-war-parallax-scrolling-project-2-20180117t044918323z
categorysteem-cartoon
json_metadata{"tags":["steem-cartoon"],"app":"steemit/0.1"}
created2018-01-17 04:48:18
last_update2018-01-17 04:48:18
depth2
children0
last_payout2018-01-24 04:48:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length90
author_reputation1,105,966,594,000
root_title"Army at War : Parallax Scrolling Project #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,091,841
net_rshares0