Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Info about scrolling a background
Started by mymidlet Aug 19 2009 10:10 AM

- - - - -
2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mymidlet

[GLOBAL: userInfoPane.html]
mymidlet
  • Enthusiast

  • 49 posts
  • Guests

Hi, a new day... a new question.

If possible, I would like to know if with current Corona version
is possible to make a scrolling line in Monkey Island

This is the YT link


As you can see from 2:00 the background scroll on right.

Obviusly there is a big picture (maybe 1200 x 320 ) and there is a mask (like flash) to hide (or show) a piece of background.

I would like to know if is possible with Corona....
and sorry about queston but here in Italy are the 3 a.m...
and maybe it's time to go to sleep :)

Best Ale
uid: 940 topic_id: 136 reply_id: 300136


[TOPIC: post.html]
#2

carlos m. icaza

[GLOBAL: userInfoPane.html]
carlos m. icaza
  • Corona Geek

  • 2,992 posts
  • Alumni

this is far from perfect code, not polished, put together in a matter of seconds, so i apologize ahead of time. this is so that you can get an idea that you can do it. find an image that is wide enough and that should get you going for now.
local image = display.newImage("img.png",0,0);
local button = display.newRect(0,460,20,20);
button:setFillColor(255,0,0);
function button:tap(event)
transition.to(image, { y= image.y-50})
end
button:addEventListener("tap",button);
uid: 24 topic_id: 136 reply_id: 121


[TOPIC: post.html]
#3

mymidlet

[GLOBAL: userInfoPane.html]
mymidlet
  • Enthusiast

  • 49 posts
  • Guests

Thanks.. it works :)
uid: 940 topic_id: 136 reply_id: 122



[topic_controls]
[/topic_controls]