Implement a moving camera, or use cards as map chunks?

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SammL1
Posts: 5
Joined: Thu Jun 05, 2014 11:12 am

Implement a moving camera, or use cards as map chunks?

Post by SammL1 » Mon Aug 18, 2014 2:48 pm

I am planning on making a game and I was wondering if if it would be better for my to use different cards as map chunks, i.e. When you go to the edge of a card a new one loads that corresponds to that map position, or whether it's possible to create a camera that will be fixed on the "player" and move around a single card?

I have an idea how to create the map tiles concept, just create an object at the bottom of the card that will be set to invisible and have a main loop at a stack level that checks for intersection. But I have not got any idea on how to create a camera fixed on an object that would move around a card. Is it even possible to create a moving camera or not?

catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Re: Implement a moving camera, or use cards as map chunks?

Post by catalinanesia » Wed Nov 12, 2014 6:22 pm

Hi Samm,
Soon I will have the same question asked by you regarding the camera.
In my case the game area is bigger than the card shown on screen and I will need
a solution to move the "unseen" game area on the screen at some point in my game.
What I did to tackle this was to check the script of this game on the LiveCode share portal
http://livecodeshare.runrev.com/
this is the title:
Side-Scrolling Game Test by Derek Bump (nice code to chew on ...)
(I do not have a solution for now, if I am not wrong a "camera" does not exists in LiveCode
so I am thinking to simulate that would be to move my "unseen objects" down the screen where they
can be seen ...)

Regards,
Catalin

PS. Can we contact Derek Bump somewhere?
Is there any developer on the forum who can guide others when it
comes to game developing field of expertise?
Do not get me wrong, the support on the forum is more than great but I hope there
is some developers who enjoy more the Game Dev. side of LiveCode ...

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Implement a moving camera, or use cards as map chunks?

Post by bn » Wed Nov 12, 2014 7:02 pm

Hi Catalin,

check out this site, it is dedicated to developing games using LiveCode.

It has super examples.

It is made by Scott McDonald

http://livecodegamedeveloper.com

Kind regards

Bernd

Post Reply

Return to “Games”