Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 14:17:34 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Platform-specific Problem -  (Read 799 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Reo
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: Today at 01:50:21
Date Registered: 28 September, 2011, 03:40:56
Location: Pennsylvania
Posts: 63

Topic starter
Total Post Ratings: +14

View Profile
« on: 14 October, 2011, 04:05:41 »
0

What concerns me is that this works absolutely fine on the PC; both problems do not occur on the PC. What I'm wondering is exactly what varies between each platform that's causing my issue.

Also, as far as I know, I'm drawing correctly. Here's an example of some of my drawing code:

on.paint

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function on.paint(gc)
if title == 0 then
drawHUD()
drawLayer1()
drawPlayer()
drawLayer0()
if pause == 1 then
gc:setFont("sansserif","r",48)
gc:setColorRGB(150,0,0)
gc:drawString("Paused",159,106,"middle")
end
else
drawTitle()
end
timer.start(0.1)
end

drawPlayer

1
2
3
function drawPlayer()
platform.gc():drawImage(playersprite,originx+((playerx-camerax)*16),originy+((playery-cameray)*16))
end

Though some of the tiles fail to draw right on the calculator, everything else draws on both platforms.

Here's a screenshot of the crash I'm getting:
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.501 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.