Count up timer over multiple cards

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm
Location: NE USA

Re: Count up timer over multiple cards

Post by WaltBrown » Sun Jan 04, 2015 2:34 pm

Check the Dictionary by sorting on Operating System - scan through the functions which are Windows only and see if you are using any of them. Also check the Dictionary for any functions, commands, or messages that have parameters or parameter values which are different for each OS.
Walt
Walt Brown
Omnis traductor traditor

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: Count up timer over multiple cards

Post by Newbie4 » Sun Jan 04, 2015 3:50 pm

Simple mazes should work on any platform.
What is not working with it? Moving the player, collisions with the walls, ending it?
Can you post the associated code for the parts that are not working?
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

CammyGray21
Posts: 17
Joined: Thu Jan 01, 2015 1:12 pm

Re: Count up timer over multiple cards

Post by CammyGray21 » Sun Jan 04, 2015 7:22 pm

Hey, the dictionary does not specify that it is incompatible, it is the intersect between the movable object and the maze itself that does not work

Code: Select all

on movePlayer pMove, pDirection
   if pDirection is "up" then
      if the top of the graphic pMove <5 then
         set the top of the graphic pMove to 0
      else 
         set the top of the graphic pMove to the top of graphic pMove -5
      end if
   else if pDirection is "down" then
      set the bottom of the graphic pMove to the bottom of the graphic pMove + 5
   else if pDirection is "right" then
      set the right of the graphic pMove to the right of the graphic pMove + 5
   else if pDirection is "left" then
      set the left of the graphic pMove to the left of the graphic pMove - 5
   end if
   if intersect (graphic "Rectangle" , image "Maze.png","opaque pixels") then
      set loc of graphic "Rectangle" to 249,493
   end if
   if intersect (graphic "Rectangle" , graphic "Rectangle2","opaque pixels") then
      answer "You have escaped the maze!"
      put true into Puzzle2_Complete
      go to card "Main Game"
      end if
end movePlayer

CammyGray21
Posts: 17
Joined: Thu Jan 01, 2015 1:12 pm

Re: Count up timer over multiple cards

Post by CammyGray21 » Sun Jan 04, 2015 8:59 pm

https://mega.co.nz/#!JgxgVaiC!CRvk5-Yak ... JnfNLfbbGw You can now download my program from here so that you can try to spot the problem first hand rather than me attempting to tell you when I am pretty unsure.

Cheers guys!

CammyGray21
Posts: 17
Joined: Thu Jan 01, 2015 1:12 pm

Re: Count up timer over multiple cards

Post by CammyGray21 » Mon Jan 05, 2015 5:55 pm

Guessing nobody is having any luck? :?: :?:

Post Reply

Return to “Games”