Football game

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ghails
Posts: 1
Joined: Sat Mar 22, 2014 4:14 pm

Football game

Post by ghails » Sat Mar 22, 2014 4:21 pm

Hi all!
Looking for some help on an idea for a football based game.
I was hoping for the game to work by the main character being a football book and hitting a football, which then lead to the football to move in that direction.
However I'am having trouble with the coding for the movement part for when the ball gets hit and if anyone could offer me some help that would be greatly appreciated!
Many thanks
George

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Football game

Post by sefrojones » Sat Mar 22, 2014 8:30 pm

Hi George,

I think you are looking for the "move" command. Search "move" in the dictionary in the IDE. Basically the command works like this:

Code: Select all

on mouseup

move myobject to mylocation

end mouseup

You can also use graphic lines and curves as your path of movement like this:

Code: Select all

on mouseup

move myobject to the points of graphic "line"

end mouseup
Hope this helps,

--sefro

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

Re: Football game

Post by bn » Sat Mar 22, 2014 9:54 pm

Hi George,

have a look at this site
http://livecodegamedeveloper.com/blog/2 ... de-pong.lc

it is a site devoted to developing games in LiveCode.

By all means explore the site and see what it offers.

Kind regards
Bernd

Post Reply

Return to “Games”