Hi CraftyDeano !
I need to add a custom image to revmob full screen ads which when taped takes the user to a specified page using director. Can you help me on this? As you already helped me and it really worked. [import]uid: 126619 topic_id: 31667 reply_id: 126903[/import]
Hi,
Can you please tell me which lines in the code you have modified to insert the image.
Thanks [import]uid: 126619 topic_id: 31667 reply_id: 127094[/import]
No problem buddy,
I have had a look, this should work:
https://gist.github.com/3860896
You will need to amend lines 463 to 465 to represent your image that you want displayed.
Also line 475 to display the scene you would like to change to. [import]uid: 62706 topic_id: 31667 reply_id: 126907[/import]
Lines 463 to 465 generate the image
Line 488 inserts it into the display group [import]uid: 62706 topic_id: 31667 reply_id: 127095[/import]
Hi,
Thanks for the help. I have used the code but unable to get what I want. I have tried to use different strategies but no success. Actually the image is shown after the ad is closed. Then if I click on the image i get the error like "attempt to index field ,screenGroup (a nill value) ". I think this is because ad is already closed. So is there a way I can get the custom image on the ad and when clicked takes me to the page. I will be extremely thankful if you can help. Its my job and client want me to do this.
Thanks [import]uid: 126619 topic_id: 31667 reply_id: 126994[/import]
Hmm, I am not sure why it is not working, as it enters the display group after everything else so it should appear on top (along with the close button)
Maybe try this on line 488
instead of the part that says:
[lua]Fullscreen.screenGroup:insert(customImage)[/lua]
Change it to:
[lua]Fullscreen.screenGroup:insert(Fullscreen.customImage)[/lua]
If this doesn’t work, maybe email the revmob guys and see if they can help? [import]uid: 62706 topic_id: 31667 reply_id: 126998[/import]
or on line 463, remove the ‘local’ before customImage [import]uid: 62706 topic_id: 31667 reply_id: 126999[/import]
Hi,
Can you please tell me which lines in the code you have modified to insert the image.
Thanks [import]uid: 126619 topic_id: 31667 reply_id: 127094[/import]
Lines 463 to 465 generate the image
Line 488 inserts it into the display group [import]uid: 62706 topic_id: 31667 reply_id: 127095[/import]